HttpTimeout.fromJson constructor

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

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,
  );
}