ProtocolInstance.fromJson constructor

ProtocolInstance.fromJson(
  1. Map<String, Object?> json
)

Implementation

ProtocolInstance.fromJson(Map<String, Object?> json)
    : desc = json['desc'] as String,
      fields = json['fields'] as Map<String, Object?>,
      icon = ((v) => v != null ? v as String : null)(json['icon']),
      networkId = json['network_id'] as String;