FeaturedMedia constructor

FeaturedMedia({
  1. @JsonKey(name: 'ID') int? id,
  2. @JsonKey(name: 'url') String? mediaUrl,
  3. @JsonKey(name: 'title') String? title,
  4. @JsonKey(name: 'type', unknownEnumValue: FeaturedMediaType.UNKNOWN) FeaturedMediaType? featuredMediaType,
  5. @JsonKey(name: 'duration') int? duration,
  6. @JsonKey(name: 'width') int? width,
  7. @JsonKey(name: 'height') int? height,
  8. @JsonKey(name: 'thumbnail') String? thumbnail,
})

Implementation

factory FeaturedMedia({
  @JsonKey(name: 'ID') int? id,
  @JsonKey(name: 'url') String? mediaUrl,
  @JsonKey(name: 'title') String? title,
  @JsonKey(name: 'type', unknownEnumValue: FeaturedMediaType.UNKNOWN)
      FeaturedMediaType? featuredMediaType,
  @JsonKey(name: 'duration') int? duration,
  @JsonKey(name: 'width') int? width,
  @JsonKey(name: 'height') int? height,
  @JsonKey(name: 'thumbnail') String? thumbnail,
}) = _FeaturedMedia;