ListChangedBlocksResponse.fromJson constructor

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

Implementation

factory ListChangedBlocksResponse.fromJson(Map<String, dynamic> json) {
  return ListChangedBlocksResponse(
    blockSize: json['BlockSize'] as int?,
    changedBlocks: (json['ChangedBlocks'] as List?)
        ?.whereNotNull()
        .map((e) => ChangedBlock.fromJson(e as Map<String, dynamic>))
        .toList(),
    expiryTime: timeStampFromJson(json['ExpiryTime']),
    nextToken: json['NextToken'] as String?,
    volumeSize: json['VolumeSize'] as int?,
  );
}