PushMsg.fromJson constructor

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

Implementation

PushMsg.fromJson(Map<String, dynamic> json)
    : tag = json['tag'] as String,
      title = json['title'] as String,
      body = json['body'] as String,
      cabinetID = json['cabinetID'] as String,
      error = json['error'] as String,
      date = DateTime.parse(json['date'] as String);