GetDimensionValuesResponse.fromJson constructor

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

Implementation

factory GetDimensionValuesResponse.fromJson(Map<String, dynamic> json) {
  return GetDimensionValuesResponse(
    dimensionValues: (json['DimensionValues'] as List)
        .whereNotNull()
        .map((e) =>
            DimensionValuesWithAttributes.fromJson(e as Map<String, dynamic>))
        .toList(),
    returnSize: json['ReturnSize'] as int,
    totalSize: json['TotalSize'] as int,
    nextPageToken: json['NextPageToken'] as String?,
  );
}