EmailContentInput.fromJson constructor

EmailContentInput.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory EmailContentInput.fromJson(
  Map<String, Object?> json,
) =>
    EmailContentInput(
      from: json["from"] == null
          ? null
          : MailboxInput.fromJson(
              (json["from"] as Map).cast<String, Object?>(),
            ),
      replyTo: json["reply_to"] == null
          ? null
          : MailboxInput.fromJson(
              (json["reply_to"] as Map).cast<String, Object?>(),
            ),
      headers: json["headers"] == null
          ? null
          : core.MessageHeaders.fromJson(json["headers"]),
      subject: json["subject"] as String,
      html: json["html"] as String,
    );