toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (effectiveConnectionType != null)
        'effectiveConnectionType': effectiveConnectionType!,
      if (formFactor != null) 'formFactor': formFactor!,
      if (metrics != null) 'metrics': metrics!,
      if (origin != null) 'origin': origin!,
      if (url != null) 'url': url!,
    };