FieldRefType.fromJson constructor

FieldRefType.fromJson(
  1. Map json
)

Implementation

factory FieldRefType.fromJson(Map json) {
  return FieldRefType(
    name: json['name'],
    allowTypes: (json['allowTypes'] as Iterable)
        .map((e) => TypeReference.fromJson(e)),
    fields: (json['fields'] as Iterable).map((e) => InputField.fromJson(e)),
  );
}