HTTPRouteDestination.fromJson constructor
Creates a HTTPRouteDestination from JSON data.
Implementation
HTTPRouteDestination.fromJson(Map<String, dynamic> json)
: this(
destination: Destination.fromJson(json['destination']),
weight: json['weight'],
headers: json['headers'] != null
? Headers.fromJson(json['headers'])
: null,
);