YIMNotificationMessage.fromJson constructor

YIMNotificationMessage.fromJson(
  1. Map<String, dynamic> map
)

Implementation

YIMNotificationMessage.fromJson(Map<String, dynamic> map) {
  id = map["id"]?.toString() ?? "";
  from = map["from"]?.toString() ?? "";
  content = map["content"]?.toString() ?? "";
  time = DateTime.fromMillisecondsSinceEpoch(double.parse(map["time"]?.toString() ?? "0").toInt());
}