toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() => {
  if (features.isNotDefault) 'features': features,
  if (defaultAlertCondition != null)
    'defaultAlertCondition': defaultAlertCondition!.toJson(),
  if (featureAlertConditions.isNotDefault)
    'featureAlertConditions': encodeMap(featureAlertConditions),
  if (batchExplanationDedicatedResources != null)
    'batchExplanationDedicatedResources': batchExplanationDedicatedResources!
        .toJson(),
};