toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var accountId = this.accountId;
  var globalPermissions = this.globalPermissions;
  var projectPermissions = this.projectPermissions;

  final json = <String, Object?>{};
  if (accountId != null) {
    json[r'accountId'] = accountId;
  }
  json[r'globalPermissions'] = globalPermissions;
  json[r'projectPermissions'] =
      projectPermissions.map((i) => i.toJson()).toList();
  return json;
}