Call constructor

Call({
  1. String? type,
  2. String? id,
  3. String? createdByUserId,
  4. String? hostUserId,
  5. Struct? custom,
  6. Timestamp? createdAt,
  7. Timestamp? updatedAt,
})

Implementation

factory Call({
  $core.String? type,
  $core.String? id,
  $core.String? createdByUserId,
  $core.String? hostUserId,
  $1.Struct? custom,
  $0.Timestamp? createdAt,
  $0.Timestamp? updatedAt,
}) {
  final result = create();
  if (type != null) result.type = type;
  if (id != null) result.id = id;
  if (createdByUserId != null) result.createdByUserId = createdByUserId;
  if (hostUserId != null) result.hostUserId = hostUserId;
  if (custom != null) result.custom = custom;
  if (createdAt != null) result.createdAt = createdAt;
  if (updatedAt != null) result.updatedAt = updatedAt;
  return result;
}