Datum.fromJson constructor

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

Implementation

factory Datum.fromJson(Map<String, dynamic> json) => Datum(
  id: json["_id"],
  address: json["address"],
  announcementsSubtype: json["announcements_subtype"],
  appId: json["app_id"],
  body: json["body"],
  creator: creatorValues.map[json["creator"]]!,
  dRptCnt: json["d_rpt_cnt"],
  date: json["date"],
  dateSent: json["date_sent"],
  deletable: json["deletable"],
  errorCode: json["error_code"],
  favorite: json["favorite"],
  hidden: json["hidden"],
  locked: json["locked"],
  msgId: json["msg_id"],
  pri: json["pri"],
  protocol: json["protocol"],
  read: json["read"],
  replyPathPresent: json["reply_path_present"],
  reserved: json["reserved"],
  roamPending: json["roam_pending"],
  safeMessage: json["safe_message"],
  secretMode: json["secret_mode"],
  seen: json["seen"],
  simImsi: simImsiValues.map[json["sim_imsi"]]!,
  simSlot: json["sim_slot"],
  spamReport: json["spam_report"],
  status: json["status"],
  subId: json["sub_id"],
  svcCmd: json["svc_cmd"],
  teleserviceId: json["teleservice_id"],
  threadId: json["thread_id"],
  type: json["type"],
  usingMode: json["using_mode"],
);