Contact.fromJson constructor

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

Implementation

factory Contact.fromJson(Map<String, dynamic> json) {
  return Contact(
    id: json['id'],
    email: json['email'],
    emailBlackListed: json['emailBlacklisted'],
    smsBlackListed: json['smsBlacklisted'],
    createdAt: DateTime.parse(json['createdAt']),
    modifiedAt: DateTime.parse(json['modifiedAt']),
    attributes: json['attributes'],
  );
}