toJson method
Dont change order of toJson the key index must be equal to protoConfig fields.
Implementation
@override
Map<String, dynamic> toJson() {
return {
'sender': switch (sender) {
List<int> bytes => StringUtils.decode(
bytes,
encoding: StringEncoding.base64,
),
_ => null,
},
'wasm_byte_code': switch (wasmByteCode) {
List<int> bytes => StringUtils.decode(
bytes,
encoding: StringEncoding.base64,
),
_ => null,
},
'source': source,
'builder': builder,
};
}