EntitySubscriptionConfiguration.fromJSON constructor
EntitySubscriptionConfiguration.fromJSON(
- Map<String, dynamic> data
)
Implementation
factory EntitySubscriptionConfiguration.fromJSON(Map<String, dynamic> data) {
return EntitySubscriptionConfiguration(
channelBufferCapacity: (data["channelBufferCapacity"] as int),
connectionMaxRetries: (data["connectionMaxRetries"] as int),
onBufferFull: EntitySubscriptionConfigurationFullBufferBehaviour.fromJSON(data["onBufferFull"]),
reconnectionDelay: Duration(milliseconds: data["reconnectionDelay"]),
retryDelayExponentFactor: (data["retryDelayExponentFactor"] as num).toDouble()
);
}