toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (channel != null) 'channel': channel!,
      if (count != null) 'count': count!,
      if (deviceOsVersion != null) 'deviceOsVersion': deviceOsVersion!,
      if (system != null) 'system': system!,
      if (version != null) 'version': version!,
    };