OutputField.fromJson constructor

OutputField.fromJson(
  1. Map json
)

Implementation

factory OutputField.fromJson(Map json) {
  return OutputField(
    name: json['name'],
    args: (json['args'] as Iterable)
        .map((e) => InputField.fromJson(e))
        .toList(),
    isNullable: json['isNullable'],
    outputType: TypeReference.fromJson(json['outputType']),
    deprecation: json['deprecation'] == null
        ? null
        : Deprecation.fromJson(json['deprecation']),
  );
}