ListSchemaVersionsResponse.fromJson constructor

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

Implementation

factory ListSchemaVersionsResponse.fromJson(Map<String, dynamic> json) {
  return ListSchemaVersionsResponse(
    nextToken: json['NextToken'] as String?,
    schemas: (json['Schemas'] as List?)
        ?.whereNotNull()
        .map((e) => SchemaVersionListItem.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}