DeviceObject constructor

DeviceObject({
  1. String? id,
  2. String? name,
  3. String? sessionId,
  4. String? ip,
  5. String? userAgent,
  6. String? os,
  7. String? lastSeen,
  8. String? profileId,
  9. Locale? locale,
  10. PresenceStatus? presence,
  11. Struct? location,
  12. Struct? properties,
})

Implementation

factory DeviceObject({
  $core.String? id,
  $core.String? name,
  $core.String? sessionId,
  $core.String? ip,
  $core.String? userAgent,
  $core.String? os,
  $core.String? lastSeen,
  $core.String? profileId,
  Locale? locale,
  PresenceStatus? presence,
  $6.Struct? location,
  $6.Struct? properties,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (name != null) {
    $result.name = name;
  }
  if (sessionId != null) {
    $result.sessionId = sessionId;
  }
  if (ip != null) {
    $result.ip = ip;
  }
  if (userAgent != null) {
    $result.userAgent = userAgent;
  }
  if (os != null) {
    $result.os = os;
  }
  if (lastSeen != null) {
    $result.lastSeen = lastSeen;
  }
  if (profileId != null) {
    $result.profileId = profileId;
  }
  if (locale != null) {
    $result.locale = locale;
  }
  if (presence != null) {
    $result.presence = presence;
  }
  if (location != null) {
    $result.location = location;
  }
  if (properties != null) {
    $result.properties = properties;
  }
  return $result;
}