Event.fromJson constructor

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

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?,
  );
}