Type.fromJson constructor

Type.fromJson(
  1. Map json_
)

Implementation

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