toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (accountId != null) 'accountId': accountId!,
      if (gecos != null) 'gecos': gecos!,
      if (gid != null) 'gid': gid!,
      if (homeDirectory != null) 'homeDirectory': homeDirectory!,
      if (name != null) 'name': name!,
      if (operatingSystemType != null)
        'operatingSystemType': operatingSystemType!,
      if (primary != null) 'primary': primary!,
      if (shell != null) 'shell': shell!,
      if (systemId != null) 'systemId': systemId!,
      if (uid != null) 'uid': uid!,
      if (username != null) 'username': username!,
    };