Map<String, dynamic> toJson() => { "subject": subject, "messageContent": messageContent, "mediaAttachmentsUrl": mediaAttachmentsUrl == null ? [] : List<dynamic>.from(mediaAttachmentsUrl!.map((x) => x)), };