toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (id != null) 'id': id!,
      if (initialUrl != null) 'initial_url': initialUrl!,
      if (metrics != null) 'metrics': metrics!,
      if (originFallback != null) 'origin_fallback': originFallback!,
      if (overallCategory != null) 'overall_category': overallCategory!,
    };