Files
lunasea/lib/modules/overseerr/api/models/content/created_by.dart
2022-02-11 12:56:16 -05: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);
}