fromMap static method
Convert the incoming map to a CoffeeBackgroundLocation instance.
Implementation
static CoffeeBackgroundLocation fromMap(Map<String, dynamic> map) {
return CoffeeBackgroundLocation(
latitude: map['latitude'] as double,
longitude: map['longitude'] as double,
accuracy: map['accuracy'] as double,
altitude: map['altitude'] as double,
speed: map['speed'] as double,
heading: map['heading'] as double,
speedAccuracy: map['speedAccuracy'] as double,
batteryLevel: map['batteryLevel'] as int,
deviceVersion: map['deviceVersion'] as String,
deviceType: map['deviceType'] as String,
deviceName: map['deviceName'] as String,
dateTime: map['dateTime'] as String,
internetConnectionType: map['internetConnectionType'] as String,
);
}