DescribeConfigurationResponse.fromJson constructor
DescribeConfigurationResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeConfigurationResponse.fromJson(Map<String, dynamic> json) {
return DescribeConfigurationResponse(
arn: json['arn'] as String?,
creationTime: timeStampFromJson(json['creationTime']),
description: json['description'] as String?,
kafkaVersions: (json['kafkaVersions'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
latestRevision: json['latestRevision'] != null
? ConfigurationRevision.fromJson(
json['latestRevision'] as Map<String, dynamic>)
: null,
name: json['name'] as String?,
state: (json['state'] as String?)?.toConfigurationState(),
);
}