Variable.fromMap constructor

Variable.fromMap(
  1. Map<String, Object?> obj
)

Implementation

Variable.fromMap(Map<String, Object?> obj)
    : declarationLocationReference =
          obj['declarationLocationReference'] as int?,
      evaluateName = obj['evaluateName'] as String?,
      indexedVariables = obj['indexedVariables'] as int?,
      memoryReference = obj['memoryReference'] as String?,
      name = obj['name'] as String,
      namedVariables = obj['namedVariables'] as int?,
      presentationHint = obj['presentationHint'] == null
          ? null
          : VariablePresentationHint.fromJson(
              obj['presentationHint'] as Map<String, Object?>),
      type = obj['type'] as String?,
      value = obj['value'] as String,
      valueLocationReference = obj['valueLocationReference'] as int?,
      variablesReference = obj['variablesReference'] as int;