factory TargetReference.fromJson(Map<String, Object?> json) => TargetReference(id: json['id'] as String);