TcpTimeout.fromJson constructor

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

Implementation

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