EmailAddress.fromJson constructor

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

Creates a new instance of EmailAddress from a JSON object.

The JSON object should contain keys that correspond to the parameters of EmailAddress.

Implementation

factory EmailAddress.fromJson(Map<String, dynamic> json) {
  return EmailAddress(
    name: json['name'],
    address: json['address'],
  );
}