toKValues method

  1. @override
Map<String, dynamic> toKValues()

转换为用字符串key读取字段值的Map

Implementation

@override
Map<String, dynamic> toKValues() {
  return {
    'latitude': latitude,
    'longitude': longitude,
    'accuracy': accuracy,
    'altitude': altitude,
    'bearing': bearing,
    'speed': speed,
    'country': country,
    'province': province,
    'city': city,
    'district': district,
    'street': street,
    'streetNumber': streetNumber,
    'cityCode': cityCode,
    'adCode': adCode,
    'address': address,
    'description': description,
    'snapshotUrl': snapshotUrl,
    'zoomLevel': zoomLevel,
    'distance': distance,
  };
}