Map<String, dynamic> toJson() { return { 'primaryIdentifier': primaryIdentifier?.toJson(), 'secondaryIdentifier': secondaryIdentifier?.toJson(), }; }