EmailSent.fromJson constructor
EmailSent.fromJson(
- Object? json
Implementation
factory EmailSent.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return EmailSent(
emailSentAt: DateTime.fromMillisecondsSinceEpoch(
(map['email_sent_at'] as int).toInt()),
emailSentTo: (map['email_sent_to'] as String),
);
}