toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (allValues != null) 'allValues': allValues!,
      if (allowedValues != null) 'allowedValues': allowedValues!,
      if (deniedValues != null) 'deniedValues': deniedValues!,
      if (inheritFromParent != null) 'inheritFromParent': inheritFromParent!,
      if (suggestedValue != null) 'suggestedValue': suggestedValue!,
    };