GetPartitionsResponse.fromJson constructor

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

Implementation

factory GetPartitionsResponse.fromJson(Map<String, dynamic> json) {
  return GetPartitionsResponse(
    nextToken: json['NextToken'] as String?,
    partitions: (json['Partitions'] as List?)
        ?.whereNotNull()
        .map((e) => Partition.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}