toJson method

Map<String, dynamic> toJson()

Implementation

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