DataType.fromJson constructor

DataType.fromJson(
  1. Map json_
)

Implementation

DataType.fromJson(core.Map json_)
    : this(
        field: json_.containsKey('field')
            ? (json_['field'] as core.List)
                .map((value) => DataTypeField.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
      );