Rendered.fromJson constructor
Implementation
factory Rendered.fromJson(Map<String, Object?> json) => Rendered(
channel: Channel.fromJson(json["channel"]),
attachments: json["attachments"] == null
? null
: (json["attachments"] as List)
.map((item) => item as String)
.toList(),
sms: json["sms"] == null
? null
: RenderedSMS.fromJson(
(json["sms"] as Map).cast<String, Object?>(),
),
email: json["email"] == null
? null
: RenderedEmail.fromJson(
(json["email"] as Map).cast<String, Object?>(),
),
);