toMap method

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

Converts the parameters into a map representation.

Returns a Map object where the keys are the parameter names and the values are their corresponding string representations.

Implementation

@override
Map<String, String> toMap() {
  return {
    ...super.toMap(),
    if (location != null) "location": location!.stringValue,
    if (pano != null) "pano": pano!,
    if (heading != null) "heading": "$heading",
    if (pitch != null) "pitch": "$pitch",
    if (fov != null) "fov": "$fov",
  };
}