toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final chaincodeLogs = this.chaincodeLogs;
  final peerLogs = this.peerLogs;
  return {
    if (chaincodeLogs != null) 'ChaincodeLogs': chaincodeLogs,
    if (peerLogs != null) 'PeerLogs': peerLogs,
  };
}