toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var action = this.action;
  var changeOwnerDetails = this.changeOwnerDetails;
  var entityIds = this.entityIds;
  var extendAdminPermissions = this.extendAdminPermissions;
  var permissionDetails = this.permissionDetails;

  final json = <String, Object?>{};
  json[r'action'] = action.value;
  if (changeOwnerDetails != null) {
    json[r'changeOwnerDetails'] = changeOwnerDetails.toJson();
  }
  json[r'entityIds'] = entityIds;
  json[r'extendAdminPermissions'] = extendAdminPermissions;
  if (permissionDetails != null) {
    json[r'permissionDetails'] = permissionDetails.toJson();
  }
  return json;
}