toMap method

Map<String, Object?> toMap()

Serializes to a map.

Implementation

Map<String, Object?> toMap() {
  return <String, Object?>{'location': location.toMap()};
}