Map<String, dynamic> toJson() { final scale = this.scale; final unscaledValue = this.unscaledValue; return { 'Scale': scale, 'UnscaledValue': base64Encode(unscaledValue), }; }