toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (destinations != null) 'destinations': destinations!,
      if (key != null) 'key': key!,
    };