Admin.fromJson constructor

Admin.fromJson(
  1. Map json_
)

Implementation

Admin.fromJson(core.Map json_)
    : this(
        account: json_.containsKey('account')
            ? json_['account'] as core.String
            : null,
        admin:
            json_.containsKey('admin') ? json_['admin'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        pendingInvitation: json_.containsKey('pendingInvitation')
            ? json_['pendingInvitation'] as core.bool
            : null,
        role: json_.containsKey('role') ? json_['role'] as core.String : null,
      );