Event.fromJson constructor
Implementation
factory Event.fromJson(Map<String, dynamic> json) {
return Event(
arn: json['arn'] as String?,
availabilityZone: json['availabilityZone'] as String?,
endTime: timeStampFromJson(json['endTime']),
eventScopeCode: (json['eventScopeCode'] as String?)?.toEventScopeCode(),
eventTypeCategory:
(json['eventTypeCategory'] as String?)?.toEventTypeCategory(),
eventTypeCode: json['eventTypeCode'] as String?,
lastUpdatedTime: timeStampFromJson(json['lastUpdatedTime']),
region: json['region'] as String?,
service: json['service'] as String?,
startTime: timeStampFromJson(json['startTime']),
statusCode: (json['statusCode'] as String?)?.toEventStatusCode(),
);
}