SegmentLocation.fromJson constructor

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

Implementation

factory SegmentLocation.fromJson(Map<String, dynamic> json) {
  return SegmentLocation(
    country: json['Country'] != null
        ? SetDimension.fromJson(json['Country'] as Map<String, dynamic>)
        : null,
    gPSPoint: json['GPSPoint'] != null
        ? GPSPointDimension.fromJson(json['GPSPoint'] as Map<String, dynamic>)
        : null,
  );
}