toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final format = this.format;
  final csvIndexToVariableMap = this.csvIndexToVariableMap;
  final jsonKeyToVariableMap = this.jsonKeyToVariableMap;
  return {
    'format': format.toValue(),
    if (csvIndexToVariableMap != null)
      'csvIndexToVariableMap': csvIndexToVariableMap,
    if (jsonKeyToVariableMap != null)
      'jsonKeyToVariableMap': jsonKeyToVariableMap,
  };
}