ImapSettings.fromJson constructor

ImapSettings.fromJson(
  1. Map json_
)

Implementation

ImapSettings.fromJson(core.Map json_)
    : this(
        autoExpunge: json_.containsKey('autoExpunge')
            ? json_['autoExpunge'] as core.bool
            : null,
        enabled: json_.containsKey('enabled')
            ? json_['enabled'] as core.bool
            : null,
        expungeBehavior: json_.containsKey('expungeBehavior')
            ? json_['expungeBehavior'] as core.String
            : null,
        maxFolderSize: json_.containsKey('maxFolderSize')
            ? json_['maxFolderSize'] as core.int
            : null,
      );