Message.fromJson constructor
Implementation
factory Message.fromJson(Map<String, dynamic> json) {
return Message(
content: json['content'] as String,
contentType: (json['contentType'] as String).toContentType(),
groupNumber: json['groupNumber'] as int?,
);
}