WasmDisassemblyChunk.fromJson constructor

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

Implementation

factory WasmDisassemblyChunk.fromJson(Map<String, dynamic> json) {
  return WasmDisassemblyChunk(
    lines: (json['lines'] as List).map((e) => e as String).toList(),
    bytecodeOffsets:
        (json['bytecodeOffsets'] as List).map((e) => e as int).toList(),
  );
}