ForecastModel.fromMap constructor

ForecastModel.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory ForecastModel.fromMap(Map<String, dynamic> map) {
  return ForecastModel(
    enDusukGun1: map['enDusukGun1']?.toInt() ?? 0,
    enDusukGun2: map['enDusukGun2']?.toInt() ?? 0,
    enDusukGun3: map['enDusukGun3']?.toInt() ?? 0,
    enDusukGun4: map['enDusukGun4']?.toInt() ?? 0,
    enDusukGun5: map['enDusukGun5']?.toInt() ?? 0,
    enDusukNemGun1: map['enDusukNemGun1']?.toInt() ?? 0,
    enDusukNemGun2: map['enDusukNemGun2']?.toInt() ?? 0,
    enDusukNemGun3: map['enDusukNemGun3']?.toInt() ?? 0,
    enDusukNemGun4: map['enDusukNemGun4']?.toInt() ?? 0,
    enDusukNemGun5: map['enDusukNemGun5']?.toInt() ?? 0,
    enYuksekGun1: map['enYuksekGun1']?.toInt() ?? 0,
    enYuksekGun2: map['enYuksekGun2']?.toInt() ?? 0,
    enYuksekGun3: map['enYuksekGun3']?.toInt() ?? 0,
    enYuksekGun4: map['enYuksekGun4']?.toInt() ?? 0,
    enYuksekGun5: map['enYuksekGun5']?.toInt() ?? 0,
    enYuksekNemGun1: map['enYuksekNemGun1']?.toInt() ?? 0,
    enYuksekNemGun2: map['enYuksekNemGun2']?.toInt() ?? 0,
    enYuksekNemGun3: map['enYuksekNemGun3']?.toInt() ?? 0,
    enYuksekNemGun4: map['enYuksekNemGun4']?.toInt() ?? 0,
    enYuksekNemGun5: map['enYuksekNemGun5']?.toInt() ?? 0,
    hadiseGun1: map['hadiseGun1'] ?? '',
    hadiseGun2: map['hadiseGun2'] ?? '',
    hadiseGun3: map['hadiseGun3'] ?? '',
    hadiseGun4: map['hadiseGun4'] ?? '',
    hadiseGun5: map['hadiseGun5'] ?? '',
    istNo: map['istNo']?.toInt() ?? 0,
    ruzgarHizGun1: map['ruzgarHizGun1']?.toInt() ?? 0,
    ruzgarHizGun2: map['ruzgarHizGun2']?.toInt() ?? 0,
    ruzgarHizGun3: map['ruzgarHizGun3']?.toInt() ?? 0,
    ruzgarHizGun4: map['ruzgarHizGun4']?.toInt() ?? 0,
    ruzgarHizGun5: map['ruzgarHizGun5']?.toInt() ?? 0,
    ruzgarYonGun1: map['ruzgarYonGun1']?.toInt() ?? 0,
    ruzgarYonGun2: map['ruzgarYonGun2']?.toInt() ?? 0,
    ruzgarYonGun3: map['ruzgarYonGun3']?.toInt() ?? 0,
    ruzgarYonGun4: map['ruzgarYonGun4']?.toInt() ?? 0,
    ruzgarYonGun5: map['ruzgarYonGun5']?.toInt() ?? 0,
    tarihGun1: map['tarihGun1'] ?? '',
    tarihGun2: map['tarihGun2'] ?? '',
    tarihGun3: map['tarihGun3'] ?? '',
    tarihGun4: map['tarihGun4'] ?? '',
    tarihGun5: map['tarihGun5'] ?? '',
  );
}