Creates a text message from a map (decoded JSON).
factory TextMessage.fromJson(Map<String, dynamic> json) => _$TextMessageFromJson(json);