TLSRoute.fromJson constructor

TLSRoute.fromJson(
  1. Map<String, dynamic> json
)

Creates a TLSRoute from JSON data.

Implementation

TLSRoute.fromJson(Map<String, dynamic> json)
    : this(
        match: TLSMatchAttributes.fromJson(json['match']),
        route: json['route'] != null
            ? RouteDestination.fromJson(json['route'])
            : null,
      );