InputField.fromJson constructor

InputField.fromJson(
  1. Map json
)

Implementation

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