toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (applicableProducts != null)
        'applicableProducts': applicableProducts!,
      if (endTime != null) 'endTime': endTime!,
      if (freeTrialDuration != null) 'freeTrialDuration': freeTrialDuration!,
      if (name != null) 'name': name!,
      if (regionCodes != null) 'regionCodes': regionCodes!,
      if (startTime != null) 'startTime': startTime!,
      if (titles != null) 'titles': titles!,
    };