DisassembleWasmModuleResult.fromJson constructor

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

Implementation

factory DisassembleWasmModuleResult.fromJson(Map<String, dynamic> json) {
  return DisassembleWasmModuleResult(
    streamId:
        json.containsKey('streamId') ? json['streamId'] as String : null,
    totalNumberOfLines: json['totalNumberOfLines'] as int,
    functionBodyOffsets:
        (json['functionBodyOffsets'] as List).map((e) => e as int).toList(),
    chunk:
        WasmDisassemblyChunk.fromJson(json['chunk'] as Map<String, dynamic>),
  );
}