ConfigurationEvent.fromJson constructor

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

Implementation

factory ConfigurationEvent.fromJson(Map<String, dynamic> json) {
  return ConfigurationEvent(
    eventDetail: json['EventDetail'] as String?,
    eventResourceName: json['EventResourceName'] as String?,
    eventResourceType: (json['EventResourceType'] as String?)
        ?.toConfigurationEventResourceType(),
    eventStatus:
        (json['EventStatus'] as String?)?.toConfigurationEventStatus(),
    eventTime: timeStampFromJson(json['EventTime']),
    monitoredResourceARN: json['MonitoredResourceARN'] as String?,
  );
}