toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final appVersion = this.appVersion;
  final locale = this.locale;
  final make = this.make;
  final model = this.model;
  final modelVersion = this.modelVersion;
  final platform = this.platform;
  final platformVersion = this.platformVersion;
  final timezone = this.timezone;
  return {
    if (appVersion != null) 'AppVersion': appVersion,
    if (locale != null) 'Locale': locale,
    if (make != null) 'Make': make,
    if (model != null) 'Model': model,
    if (modelVersion != null) 'ModelVersion': modelVersion,
    if (platform != null) 'Platform': platform,
    if (platformVersion != null) 'PlatformVersion': platformVersion,
    if (timezone != null) 'Timezone': timezone,
  };
}