toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final namespace = this.namespace;
  final optionName = this.optionName;
  final resourceName = this.resourceName;
  return {
    if (namespace != null) 'Namespace': namespace,
    if (optionName != null) 'OptionName': optionName,
    if (resourceName != null) 'ResourceName': resourceName,
  };
}