fromJson static method

MsgOfflinePushModel fromJson(
  1. String source
)

Implementation

static MsgOfflinePushModel fromJson(String source) {
  Map<String, dynamic> map = json.decode(source);
  return MsgOfflinePushModel(
    title: map["title"],
    content: map["content"],
    payload: map["payload"],
  );
}