YIMNotificationMessage.fromJson constructor

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

Implementation

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