SearchSchemaSummary.fromJson constructor

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

Implementation

factory SearchSchemaSummary.fromJson(Map<String, dynamic> json) {
  return SearchSchemaSummary(
    registryName: json['RegistryName'] as String?,
    schemaArn: json['SchemaArn'] as String?,
    schemaName: json['SchemaName'] as String?,
    schemaVersions: (json['SchemaVersions'] as List?)
        ?.whereNotNull()
        .map((e) =>
            SearchSchemaVersionSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}