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;
}