Files
lunasea/lib/api/overseerr/models/content/created_by.dart
2022-08-29 22:51:21 -04:00

38 lines
707 B
Dart

import 'package:lunasea/core.dart';
part 'created_by.g.dart';
@JsonSerializable(explicitToJson: true, includeIfNull: false)
class OverseerrCreatedBy {
@JsonKey()
int? id;
@JsonKey(name: 'credit_id')
String? creditId;
@JsonKey()
String? name;
@JsonKey()
int? gender;
@JsonKey(name: 'profile_path')
String? profilePath;
OverseerrCreatedBy({
this.id,
this.creditId,
this.name,
this.gender,
this.profilePath,
});
@override
String toString() => json.encode(this.toJson());
factory OverseerrCreatedBy.fromJson(Map<String, dynamic> json) =>
_$OverseerrCreatedByFromJson(json);
Map<String, dynamic> toJson() => _$OverseerrCreatedByToJson(this);
}