Schema.fromJson constructor

Schema.fromJson(
  1. Map json_
)

Implementation

Schema.fromJson(core.Map json_)
    : this(
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        fields: json_.containsKey('fields')
            ? (json_['fields'] as core.List)
                .map((value) => SchemaFieldSpec.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        schemaId: json_.containsKey('schemaId')
            ? json_['schemaId'] as core.String
            : null,
        schemaName: json_.containsKey('schemaName')
            ? json_['schemaName'] as core.String
            : null,
      );