Account constructor

Account({
  1. int? id,
  2. String? email,
  3. String? name,
  4. Int64? usage,
  5. Int64? cap,
  6. String? password,
  7. Timestamp? createdAt,
  8. Timestamp? updatedAt,
})

Implementation

factory Account({
  $core.int? id,
  $core.String? email,
  $core.String? name,
  $fixnum.Int64? usage,
  $fixnum.Int64? cap,
  $core.String? password,
  $0.Timestamp? createdAt,
  $0.Timestamp? updatedAt,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (email != null) {
    _result.email = email;
  }
  if (name != null) {
    _result.name = name;
  }
  if (usage != null) {
    _result.usage = usage;
  }
  if (cap != null) {
    _result.cap = cap;
  }
  if (password != null) {
    _result.password = password;
  }
  if (createdAt != null) {
    _result.createdAt = createdAt;
  }
  if (updatedAt != null) {
    _result.updatedAt = updatedAt;
  }
  return _result;
}