ProtocolCounts.fromJson constructor

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

Read this payload from a decoded JSON object.

Implementation

factory ProtocolCounts.fromJson(Map<String, dynamic> json) => ProtocolCounts(
      didcomm: json['didcomm'] as int?,
      didcommV1: json['didcommV1'] as int?,
      tsp: json['tsp'] as int?,
      other: json['other'] as int?,
    );