ExportModel.fromJson constructor

ExportModel.fromJson(
  1. Map<String, dynamic> json
)

Converts a JSON object into an ExportModel instance.

Implementation

factory ExportModel.fromJson(Map<String, dynamic> json) => ExportModel(
      subject: json["subject"],
      messageContent: json["messageContent"],
      mediaAttachmentsUrl: json["mediaAttachmentsUrl"] == null
          ? []
          : List<String>.from(json["mediaAttachmentsUrl"]!.map((x) => x)),
    );