DescribeDimensionKeysResponse.fromJson constructor

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

Implementation

factory DescribeDimensionKeysResponse.fromJson(Map<String, dynamic> json) {
  return DescribeDimensionKeysResponse(
    alignedEndTime: timeStampFromJson(json['AlignedEndTime']),
    alignedStartTime: timeStampFromJson(json['AlignedStartTime']),
    keys: (json['Keys'] as List?)
        ?.whereNotNull()
        .map((e) =>
            DimensionKeyDescription.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
    partitionKeys: (json['PartitionKeys'] as List?)
        ?.whereNotNull()
        .map((e) => ResponsePartitionKey.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}