fromJson method

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

Implementation

void fromJson(Map<String, dynamic> json) {
  useCompression = json['useCompression'] as bool? ?? false;
  currentVersion = json['currentVersion'] as int? ?? 1;
  enableEncryption = json['enableEncryption'] as bool? ?? false;
  encryptionKey = json['encryptionKey'] as String?;
  final expirationSeconds = json['stateExpirationDuration'] as int?;
  stateExpirationDuration =
      expirationSeconds != null ? Duration(seconds: expirationSeconds) : null;
}