ResendListContactsResponseContact.fromJson constructor

ResendListContactsResponseContact.fromJson(
  1. Json json
)

Factory method for creating a ResendListContactsResponseContact instance from a JSON object

Implementation

factory ResendListContactsResponseContact.fromJson(Json json) {
  return ResendListContactsResponseContact(
      contactId: json['id'] as String,
      email: json['email'] as String,
      firstName: json['first_name'] as String?,
      lastName: json['last_name'] as String?,
      createdAt: DateTime.parse(json['created_at'] as String),
      unsubscribed: json['unsubscribed'] as bool);
}