toJson method

Map<String, dynamic> toJson()

Implementation

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