Mailbox.fromJson constructor

Mailbox.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory Mailbox.fromJson(Map<String, Object?> json) => Mailbox(
      address: json["address"] as String,
      name: json["name"] == null ? null : json["name"] as String,
    );