parseProperties function

Map<String, JsonSchema> parseProperties(
  1. Map<String, dynamic> jsonSchema
)

Parse the properties of a JSON schema.

Implementation

Map<String, JsonSchema> parseProperties(Map<String, dynamic> jsonSchema) {
  final _properties = jsonSchema['properties'];
  if (_properties is Map<String, dynamic>) {
    return _properties
        .map((key, value) => MapEntry(key, JsonSchema.fromMap(value)));
  }
  return {};
}