DataEvent.fromJson constructor
Implementation
factory DataEvent.fromJson(Map<String, dynamic> json) => DataEvent(
type: DataEventType.values[(json["type"] as int? ?? 1) - 1],
dataItem: DataItem.fromJson((json["dataItem"] as Map? ?? {})
.map((key, value) => MapEntry(key.toString(), value))),
isDataValid: json["isDataValid"] as bool? ?? false,
);