Map<String, dynamic> toJson() => { 'quantity': quantity, 'unitValueMicros': ?unitValueMicros, 'valueCents': ?valueCents, 'countedOn': countedOn, };