Album constructor

Album({
  1. int? id,
  2. String? title,
  3. Iterable<Photo>? photos,
})

Implementation

factory Album({
  $core.int? id,
  $core.String? title,
  $core.Iterable<Photo>? photos,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (title != null) {
    _result.title = title;
  }
  if (photos != null) {
    _result.photos.addAll(photos);
  }
  return _result;
}