RuntimeEntitySchema.fromJson constructor

RuntimeEntitySchema.fromJson(
  1. Map json_
)

Implementation

RuntimeEntitySchema.fromJson(core.Map json_)
    : this(
        entity: json_.containsKey('entity')
            ? json_['entity'] as core.String
            : null,
        fields: json_.containsKey('fields')
            ? (json_['fields'] as core.List)
                .map((value) => Field.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        jsonSchema: json_.containsKey('jsonSchema')
            ? JsonSchema.fromJson(
                json_['jsonSchema'] as core.Map<core.String, core.dynamic>)
            : null,
        operations: json_.containsKey('operations')
            ? (json_['operations'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );