Chime.fromJson constructor
Implementation
factory Chime.fromJson(Map<String, Object?> json) => Chime(
createdAt: decodeDateTime(json["created_at"]),
customData: json["custom_data"] == null
? null
: core.CustomData.fromJson(json["custom_data"]),
customerId:
json["customer_id"] == null ? null : json["customer_id"] as String,
email: json["email"] == null
? null
: EmailMessage.fromJson(
(json["email"] as Map).cast<String, Object?>(),
),
fullMessage: json["full_message"] as String,
id: json["id"] as String,
idempotencyKey: json["idempotency_key"] == null
? null
: json["idempotency_key"] as String,
purpose: json["purpose"] == null ? null : json["purpose"] as String,
recipient: Recipient.fromJson(
(json["recipient"] as Map).cast<String, Object?>(),
),
senderId: json["sender_id"] as String,
transmission: json["transmission"] == null
? null
: Transmission.fromJson(
(json["transmission"] as Map).cast<String, Object?>(),
),
);