toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final dataSourceFieldName = this.dataSourceFieldName;
  final dateFieldFormat = this.dateFieldFormat;
  final indexFieldName = this.indexFieldName;
  return {
    if (dataSourceFieldName != null)
      'DataSourceFieldName': dataSourceFieldName.toValue(),
    if (dateFieldFormat != null) 'DateFieldFormat': dateFieldFormat,
    if (indexFieldName != null) 'IndexFieldName': indexFieldName,
  };
}