toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final exists = this.exists;
  final value = this.value;
  return {
    if (exists != null) 'Exists': exists,
    if (value != null) 'Value': value,
  };
}