DatabaseEncryption.fromJson constructor

DatabaseEncryption.fromJson(
  1. Map json_
)

Implementation

DatabaseEncryption.fromJson(core.Map json_)
    : this(
        currentState: json_.containsKey('currentState')
            ? json_['currentState'] as core.String
            : null,
        decryptionKeys: json_.containsKey('decryptionKeys')
            ? (json_['decryptionKeys'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        keyName: json_.containsKey('keyName')
            ? json_['keyName'] as core.String
            : null,
        lastOperationErrors: json_.containsKey('lastOperationErrors')
            ? (json_['lastOperationErrors'] as core.List)
                .map((value) => OperationError.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
      );