toJson method

Map<String, String> toJson()

Implementation

Map<String, String> toJson() {
  final Map<String, String> data = <String, String>{};
  data["path"] = path!;
  data["output_path"] = outputPath!;
  if (sheetUrl != null) {
    data["sheet_url"] = sheetUrl!;
  }
  if (sheetId != null) {
    data["sheet_id"] = sheetId!;
  }
  if (sheetName != null) {
    data["sheet_name"] = sheetName!;
  }

  data["column"] = (column ?? 1).toString();
  data["row"] = (row ?? 1).toString();
  data["all"] = '${all ?? false}';
  data["key_name"] = keyName ?? 'key-getx-translator';
  return data;
}