DeleteMailboxRequest.fromJson constructor
Implementation
factory DeleteMailboxRequest.fromJson(Map<String, dynamic> json) {
final typeStr = json['type'] as String;
final type = MailboxType.values.firstWhere((e) => e.name == typeStr);
return DeleteMailboxRequest(
address: parseAddress(json['address'] as String, type: type),
);
}