toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final name = this.name;
  final jsonPath = this.jsonPath;
  return {
    'Name': name,
    if (jsonPath != null) 'JsonPath': jsonPath,
  };
}