PosixUser.fromJson constructor

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

Implementation

factory PosixUser.fromJson(Map<String, dynamic> json) {
  return PosixUser(
    gid: json['Gid'] as int,
    uid: json['Uid'] as int,
    secondaryGids: (json['SecondaryGids'] as List?)
        ?.whereNotNull()
        .map((e) => e as int)
        .toList(),
  );
}