Schema.fromJson constructor

Schema.fromJson(
  1. Map json
)

Implementation

factory Schema.fromJson(Map json) {
  return Schema(
    inputTypes:
        SchemaTypes.fromJson(json['inputObjectTypes'], InputType.fromJson),
    outputTypes:
        SchemaTypes.fromJson(json['outputObjectTypes'], OutputType.fromJson),
    enumTypes: SchemaTypes.fromJson(json['enumTypes'], Enum.fromJson),
    fieldRefTypes:
        SchemaTypes.fromJson(json['fieldRefTypes'], FieldRefType.fromJson),
  );
}