toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var id = this.id;
  var subjects = this.subjects;
  var operation = this.operation;
  var anonymousAccess = this.anonymousAccess;
  var unlicensedAccess = this.unlicensedAccess;

  final json = <String, Object?>{};
  if (id != null) {
    json[r'id'] = id;
  }
  if (subjects != null) {
    json[r'subjects'] = subjects.toJson();
  }
  json[r'operation'] = operation.toJson();
  json[r'anonymousAccess'] = anonymousAccess;
  json[r'unlicensedAccess'] = unlicensedAccess;
  return json;
}