GetSlotTypeVersionsResponse.fromJson constructor

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

Implementation

factory GetSlotTypeVersionsResponse.fromJson(Map<String, dynamic> json) {
  return GetSlotTypeVersionsResponse(
    nextToken: json['nextToken'] as String?,
    slotTypes: (json['slotTypes'] as List?)
        ?.whereNotNull()
        .map((e) => SlotTypeMetadata.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}