Group constructor

Group({
  1. String? id,
  2. String? name,
  3. Timestamp? createdAt,
  4. Timestamp? updatedAt,
})

Implementation

factory Group({
  $core.String? id,
  $core.String? name,
  $2.Timestamp? createdAt,
  $2.Timestamp? updatedAt,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (name != null) {
    _result.name = name;
  }
  if (createdAt != null) {
    _result.createdAt = createdAt;
  }
  if (updatedAt != null) {
    _result.updatedAt = updatedAt;
  }
  return _result;
}