JsonSchemaAnnotations.fromJson constructor Null safety

JsonSchemaAnnotations.fromJson(
  1. Map _json
)

Implementation

JsonSchemaAnnotations.fromJson(core.Map _json)
    : this(
        required: _json.containsKey('required')
            ? (_json['required'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );