toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (all != null) 'all': all!,
      if (exclusionLabels != null)
        'exclusionLabels':
            exclusionLabels!.map((value) => value.toJson()).toList(),
      if (inclusionLabels != null)
        'inclusionLabels':
            inclusionLabels!.map((value) => value.toJson()).toList(),
      if (inventories != null)
        'inventories': inventories!.map((value) => value.toJson()).toList(),
      if (osShortNames != null) 'osShortNames': osShortNames!,
    };