toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  if (this.location != null) {
    data['location'] = this.location!.toJson();
  }
  if (this.viewport != null) {
    data['viewport'] = this.viewport!.toJson();
  }
  return data;
}