BridgeResponse.fromJson constructor

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

Implementation

factory BridgeResponse.fromJson(Map<String, dynamic> json) => BridgeResponse(
  id: json['id'].toString(),
  result: json['result'],
  error: json['error'] != null
      ? BridgeError.fromJson(json['error'] as Map<String, dynamic>)
      : null,
);