StatusModel.fromMap constructor

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

Implementation

factory StatusModel.fromMap(Map<String, dynamic> map) {
  return StatusModel(
    aktuelBasinc: map['aktuelBasinc']?.toDouble() ?? 0.0,
    denizSicaklik: map['denizSicaklik']?.toInt() ?? 0,
    denizeIndirgenmisBasinc:
        map['denizeIndirgenmisBasinc']?.toDouble() ?? 0.0,
    gorus: map['gorus']?.toInt() ?? 0,
    hadiseKodu: map['hadiseKodu'] ?? '',
    istNo: map['istNo']?.toInt() ?? 0,
    kapalilik: map['kapalilik']?.toInt() ?? 0,
    karYukseklik: map['karYukseklik']?.toInt() ?? 0,
    nem: map['nem']?.toInt() ?? 0,
    rasatMetar: map['rasatMetar'] ?? '',
    rasatSinoptik: map['rasatSinoptik'] ?? '',
    rasatTaf: map['rasatTaf'] ?? '',
    ruzgarHiz: map['ruzgarHiz']?.toDouble() ?? 0.0,
    ruzgarYon: map['ruzgarYon']?.toInt() ?? 0,
    sicaklik: map['sicaklik']?.toDouble() ?? 0.0,
    veriZamani: map['veriZamani'] ?? '',
    yagis00Now: map['yagis00Now']?.toDouble() ?? 0.0,
    yagis10Dk: map['yagis10Dk']?.toInt() ?? 0,
    yagis12Saat: map['yagis12Saat']?.toDouble() ?? 0.0,
    yagis1Saat: map['yagis1Saat']?.toInt() ?? 0,
    yagis24Saat: map['yagis24Saat']?.toDouble() ?? 0.0,
    yagis6Saat: map['yagis6Saat']?.toDouble() ?? 0.0,
    denizVeriZamani: map['denizVeriZamani'] ?? '',
  );
}