toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final numberValue = this.numberValue;
  final stringValue = this.stringValue;
  return {
    if (numberValue != null) 'NumberValue': numberValue,
    if (stringValue != null) 'StringValue': stringValue,
  };
}