toMap method Null safety

  1. @override
Map<String, Object?> toMap()

model -> map

Implementation

@override
Map<String, Object?> toMap() {
  return {
    'updating': this.updating,
    'location': this.location?.toMap(),
    'heading': this.heading?.toMap(),
    'title': this.title,
    'subtitle': this.subtitle
  };
}