Schema.fromJson constructor

Schema.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Schema.fromJson(Map<String, dynamic> json) {
  return Schema(
    attributes: (json['Attributes'] as List?)
        ?.whereNotNull()
        .map((e) => SchemaAttribute.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}