InputTypeConstraints.fromJson constructor

InputTypeConstraints.fromJson(
  1. Map json
)

Implementation

factory InputTypeConstraints.fromJson(Map json) {
  return InputTypeConstraints(
    maxNumFields: json['maxNumFields'],
    minNumFields: json['minNumFields'],
    fields: json['fields'] == null
        ? null
        : (json['fields'] as Iterable).cast<String>(),
  );
}