SegmentDemographics.fromJson constructor

SegmentDemographics.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SegmentDemographics.fromJson(Map<String, dynamic> json) {
  return SegmentDemographics(
    appVersion: json['AppVersion'] != null
        ? SetDimension.fromJson(json['AppVersion'] as Map<String, dynamic>)
        : null,
    channel: json['Channel'] != null
        ? SetDimension.fromJson(json['Channel'] as Map<String, dynamic>)
        : null,
    deviceType: json['DeviceType'] != null
        ? SetDimension.fromJson(json['DeviceType'] as Map<String, dynamic>)
        : null,
    make: json['Make'] != null
        ? SetDimension.fromJson(json['Make'] as Map<String, dynamic>)
        : null,
    model: json['Model'] != null
        ? SetDimension.fromJson(json['Model'] as Map<String, dynamic>)
        : null,
    platform: json['Platform'] != null
        ? SetDimension.fromJson(json['Platform'] as Map<String, dynamic>)
        : null,
  );
}