InputType.fromJson constructor
InputType.fromJson(
- Map json
Implementation
factory InputType.fromJson(Map json) {
return InputType(
name: json['name'],
constraints: InputTypeConstraints.fromJson(json['constraints']),
meta: json['meta'] == null ? null : InputTypeMeta.fromJson(json['meta']),
fields: (json['fields'] as Iterable)
.map((e) => InputField.fromJson(e))
.toList(),
);
}