TCPRoute.fromJson constructor
Creates a TCPRoute from JSON data.
Implementation
TCPRoute.fromJson(Map<String, dynamic> json)
: this(
match: json['match'] != null
? (json['match'] as Iterable)
.cast<Map<String, dynamic>>()
.map((e) => L4MatchAttributes.fromJson(e))
.toList()
: null,
route: json['route'] != null
? (json['route'] as Iterable)
.cast<Map<String, dynamic>>()
.map((e) => RouteDestination.fromJson(e))
.toList()
: null,
);