DescribeDimensionResponse.fromJson constructor

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

Implementation

factory DescribeDimensionResponse.fromJson(Map<String, dynamic> json) {
  return DescribeDimensionResponse(
    arn: json['arn'] as String?,
    creationDate: timeStampFromJson(json['creationDate']),
    lastModifiedDate: timeStampFromJson(json['lastModifiedDate']),
    name: json['name'] as String?,
    stringValues: (json['stringValues'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    type: (json['type'] as String?)?.toDimensionType(),
  );
}