GpsEntity.fromMap constructor

GpsEntity.fromMap(
  1. Map map
)

Implementation

factory GpsEntity.fromMap(Map<dynamic, dynamic> map) {
  return GpsEntity(
    code: map['code'].toString(),
    message: map['message'].toString(),
    latitude: _Helper.getDoubleValue(map, 'latitude') ?? 0,
    longitude: _Helper.getDoubleValue(map, 'longitude') ?? 0,
  );
}