Account.fromJson constructor

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

Implementation

factory Account.fromJson(Map<String, dynamic> json) => Account(
      (json['rawId'] as String?) ?? '',
      (json['type'] as String?) ?? '',
      (json['name'] as String?) ?? '',
      (json['mimetypes'] as List?)?.map((e) => e as String).toList() ?? [],
    );