fromJson static method

NoticeModel fromJson(
  1. String source
)

Implementation

static NoticeModel fromJson(String source) {
  Map<String, dynamic> map = json.decode(source);
  return NoticeModel(
    convId: map["convId"],
    noticeId: map["noticeId"],
    createTime: map["createTime"],
    title: map["title"],
    contentType: map["contentType"],
    content: map["content"],
    options: NoticeOptionsModel.fromJson(map["options"]),
    ext: map["ext"],
  );
}