UpdateConfigurationResponse.fromJson constructor

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

Implementation

factory UpdateConfigurationResponse.fromJson(Map<String, dynamic> json) {
  return UpdateConfigurationResponse(
    arn: json['arn'] as String?,
    created: timeStampFromJson(json['created']),
    id: json['id'] as String?,
    latestRevision: json['latestRevision'] != null
        ? ConfigurationRevision.fromJson(
            json['latestRevision'] as Map<String, dynamic>)
        : null,
    name: json['name'] as String?,
    warnings: (json['warnings'] as List?)
        ?.whereNotNull()
        .map((e) => SanitizationWarning.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}