Backup.fromJson constructor

Backup.fromJson(
  1. Map json_
)

Implementation

Backup.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        database: json_.containsKey('database')
            ? json_['database'] as core.String
            : null,
        databaseDialect: json_.containsKey('databaseDialect')
            ? json_['databaseDialect'] as core.String
            : null,
        encryptionInfo: json_.containsKey('encryptionInfo')
            ? EncryptionInfo.fromJson(json_['encryptionInfo']
                as core.Map<core.String, core.dynamic>)
            : null,
        encryptionInformation: json_.containsKey('encryptionInformation')
            ? (json_['encryptionInformation'] as core.List)
                .map((value) => EncryptionInfo.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        expireTime: json_.containsKey('expireTime')
            ? json_['expireTime'] as core.String
            : null,
        maxExpireTime: json_.containsKey('maxExpireTime')
            ? json_['maxExpireTime'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        referencingBackups: json_.containsKey('referencingBackups')
            ? (json_['referencingBackups'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        referencingDatabases: json_.containsKey('referencingDatabases')
            ? (json_['referencingDatabases'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        sizeBytes: json_.containsKey('sizeBytes')
            ? json_['sizeBytes'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        versionTime: json_.containsKey('versionTime')
            ? json_['versionTime'] as core.String
            : null,
      );