ContractCodeCostInputs.fromStruct constructor

ContractCodeCostInputs.fromStruct(
  1. Map<String, dynamic> json
)

Implementation

factory ContractCodeCostInputs.fromStruct(Map<String, dynamic> json) {
  return ContractCodeCostInputs(
    ext: ExtentionPointVoid.fromStruct(json.asMap("ext")),
    nDataSegmentBytes: json.as("nDataSegmentBytes"),
    nDataSegments: json.as("nDataSegments"),
    nElemSegments: json.as("nElemSegments"),
    nExports: json.as("nExports"),
    nFunctions: json.as("nFunctions"),
    nGlobals: json.as("nGlobals"),
    nImports: json.as("nImports"),
    nInstructions: json.as("nInstructions"),
    nTableEntries: json.as("nTableEntries"),
    nTypes: json.as("nTypes"),
  );
}