toMap method Null safety

dynamic toMap()

Implementation

dynamic toMap() => <String, dynamic>{
      'bearing': bearing,
      'target': target.toJson(),
      'tilt': tilt,
      'zoom': zoom,
    };