Event.fromJson constructor

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

Implementation

factory Event.fromJson(Map<String, dynamic> json) {
  return Event(
    date: timeStampFromJson(json['Date']),
    message: json['Message'] as String?,
    sourceName: json['SourceName'] as String?,
    sourceType: (json['SourceType'] as String?)?.toSourceType(),
  );
}