NetworkHeader.fromJson constructor

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

Implementation

factory NetworkHeader.fromJson(Map<String, dynamic> json) {
  return NetworkHeader(
    destination: json['Destination'] != null
        ? NetworkPathComponentDetails.fromJson(
            json['Destination'] as Map<String, dynamic>)
        : null,
    protocol: json['Protocol'] as String?,
    source: json['Source'] != null
        ? NetworkPathComponentDetails.fromJson(
            json['Source'] as Map<String, dynamic>)
        : null,
  );
}