toJson method
Implementation
Map<String, dynamic> toJson() {
final maxRetries = this.maxRetries;
final perRetryTimeout = this.perRetryTimeout;
final httpRetryEvents = this.httpRetryEvents;
final tcpRetryEvents = this.tcpRetryEvents;
return {
'maxRetries': maxRetries,
'perRetryTimeout': perRetryTimeout,
if (httpRetryEvents != null) 'httpRetryEvents': httpRetryEvents,
if (tcpRetryEvents != null)
'tcpRetryEvents': tcpRetryEvents.map((e) => e.toValue()).toList(),
};
}