InputModel.fromJson constructor

InputModel.fromJson(
  1. Map<String, dynamic> json
)

Implementation

InputModel.fromJson(Map<String, dynamic> json) {
  if (json["path"] is String) {
    path = json["path"];
  } else {
    path = 'lib';
  }
  if (json["output_path"] is String) {
    outputPath = json["output_path"];
  } else {
    outputPath = 'assets/language';
  }
  if (json["sheet_url"] is String) {
    sheetUrl = json["sheet_url"];
  }
  if (json["sheet_id"] is String) {
    sheetId = json["sheet_id"];
  }
  if (json["sheet_name"] is String) {
    sheetName = json["sheet_name"];
  }
  if (json["column"] is int) {
    column = json["column"];
  }
  if (json["row"] is int) {
    row = json["row"];
  }
  if (json["all"] is bool) {
    all = json["all"];
  }
  if (json["key_name"] is String) {
    keyName = json["key_name"];
  }
}