MovieEntity constructor

MovieEntity({
  1. String? version,
  2. MovieParams? params,
  3. Map<String, List<int>>? images,
  4. Iterable<SpriteEntity>? sprites,
  5. Iterable<AudioEntity>? audios,
})

Implementation

factory MovieEntity({
  $core.String? version,
  MovieParams? params,
  $core.Map<$core.String, $core.List<$core.int>>? images,
  $core.Iterable<SpriteEntity>? sprites,
  $core.Iterable<AudioEntity>? audios,
}) {
  final _result = create();
  if (version != null) {
    _result.version = version;
  }
  if (params != null) {
    _result.params = params;
  }
  if (images != null) {
    _result.images.addAll(images);
  }
  if (sprites != null) {
    _result.sprites.addAll(sprites);
  }
  if (audios != null) {
    _result.audios.addAll(audios);
  }
  return _result;
}