OriginationRoute.fromJson constructor

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

Implementation

factory OriginationRoute.fromJson(Map<String, dynamic> json) {
  return OriginationRoute(
    host: json['Host'] as String?,
    port: json['Port'] as int?,
    priority: json['Priority'] as int?,
    protocol: (json['Protocol'] as String?)?.toOriginationRouteProtocol(),
    weight: json['Weight'] as int?,
  );
}