fromJson static method

RiskAnalytics fromJson(
  1. dynamic json
)

Implementation

static RiskAnalytics fromJson(dynamic json) {
  var geoDataJson = json['geoData'];
  GeoData? geoData;

  if (geoDataJson != null) {
    geoData = GeoData.fromJson(geoDataJson);
  }

  return RiskAnalytics(json['riskStatus'] as String?,
      json['riskFlagString'] as String?, geoData);
}