toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (account != null) 'account': account!,
      if (admin != null) 'admin': admin!,
      if (name != null) 'name': name!,
      if (pendingInvitation != null) 'pendingInvitation': pendingInvitation!,
      if (role != null) 'role': role!,
    };