JsonSchemaAnnotations.fromJson constructor

JsonSchemaAnnotations.fromJson(
  1. Map _json
)

Implementation

JsonSchemaAnnotations.fromJson(core.Map _json) {
  if (_json.containsKey('required')) {
    required = (_json['required'] as core.List)
        .map<core.String>((value) => value as core.String)
        .toList();
  }
}