MiPushMessageEntity.fromJson constructor

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

Implementation

factory MiPushMessageEntity.fromJson(Map<String, dynamic> json) {
  return MiPushMessageEntity(
    arrivedMessage: json['arrivedMessage'],
    content: json['content'],
    description: json['description'],
    extra: json['extra'] == null
        ? null
        : MiPushMessageExtra.fromJson(json['extra']),
    messageId: json['messageId'],
    messageType: json['messageType'],
    notified: json['notified'],
    notifyId: json['notifyId'],
    notifyType: json['notifyType'],
    passThrough: json['passThrough'],
    title: json['title'],
  );
}