Creates a custom message from a map (decoded JSON).
factory SystemMessage.fromJson(Map<String, dynamic> json) => _$SystemMessageFromJson(json);