toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (byproducts != null) 'byproducts': byproducts!.toJson(),
      if (command != null) 'command': command!,
      if (environment != null) 'environment': environment!.toJson(),
      if (materials != null)
        'materials': materials!.map((value) => value.toJson()).toList(),
      if (products != null)
        'products': products!.map((value) => value.toJson()).toList(),
    };