toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var type = this.type;
  var projectKeyOrId = this.projectKeyOrId;

  final json = <String, Object?>{};
  if (type != null) {
    json[r'type'] = type.value;
  }
  if (projectKeyOrId != null) {
    json[r'projectKeyOrId'] = projectKeyOrId;
  }
  return json;
}