SectionLocationData.fromMap constructor

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

Implementation

factory SectionLocationData.fromMap(Map<String, dynamic> map) {
  return SectionLocationData(
    kszam: map['kszam'] ?? '',
    km: map['km']?.toInt() ?? 0,
    m: map['m']?.toInt() ?? 0,
    pkod: map['pkod']?.toInt() ?? 0,
    szakLabel: map['szakLabel'] ?? '',
    leiras: map['leiras'] ?? '',
    wgs84X: map['wgs84X']?.toDouble() ?? 0.0,
    wgs84Y: map['wgs84Y']?.toDouble() ?? 0.0,
  );
}