Event.fromJson constructor
Implementation
factory Event.fromJson(Map<String, dynamic> json) {
return Event(
eventCode: (json['EventCode'] as String?)?.toEventCode(),
eventId: json['EventId'] as String?,
eventTime: timeStampFromJson(json['EventTime']),
message: json['Message'] as String?,
preSignedLogUrl: json['PreSignedLogUrl'] as String?,
resourceId: json['ResourceId'] as String?,
);
}