Account.fromJson constructor
Implementation
factory Account.fromJson(Map<String, dynamic> json) {
return Account(
apiKeyVersion: json['apiKeyVersion'] as String?,
cloudwatchRoleArn: json['cloudwatchRoleArn'] as String?,
features: (json['features'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
throttleSettings: json['throttleSettings'] != null
? ThrottleSettings.fromJson(
json['throttleSettings'] as Map<String, dynamic>)
: null,
);
}