PosixAccount.fromJson constructor

PosixAccount.fromJson(
  1. Map json_
)

Implementation

PosixAccount.fromJson(core.Map json_)
    : this(
        accountId: json_.containsKey('accountId')
            ? json_['accountId'] as core.String
            : null,
        gecos:
            json_.containsKey('gecos') ? json_['gecos'] as core.String : null,
        gid: json_.containsKey('gid') ? json_['gid'] as core.String : null,
        homeDirectory: json_.containsKey('homeDirectory')
            ? json_['homeDirectory'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        operatingSystemType: json_.containsKey('operatingSystemType')
            ? json_['operatingSystemType'] as core.String
            : null,
        primary: json_.containsKey('primary')
            ? json_['primary'] as core.bool
            : null,
        shell:
            json_.containsKey('shell') ? json_['shell'] as core.String : null,
        systemId: json_.containsKey('systemId')
            ? json_['systemId'] as core.String
            : null,
        uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
        username: json_.containsKey('username')
            ? json_['username'] as core.String
            : null,
      );