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