HttpTimeout.fromJson constructor
Implementation
factory HttpTimeout.fromJson(Map<String, dynamic> json) {
return HttpTimeout(
idle: json['idle'] != null
? Duration.fromJson(json['idle'] as Map<String, dynamic>)
: null,
perRequest: json['perRequest'] != null
? Duration.fromJson(json['perRequest'] as Map<String, dynamic>)
: null,
);
}