20 lines
488 B
Dart
20 lines
488 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'animator.g.dart';
|
|
|
|
@JsonSerializable()
|
|
class Animator {
|
|
final String id;
|
|
final String name;
|
|
final String content;
|
|
final String authorImageUrl = 'https://placehold.co/400x400/png';
|
|
|
|
Animator({
|
|
required this.id,
|
|
required this.name,
|
|
required this.content,
|
|
});
|
|
|
|
factory Animator.fromJson(Map<String, dynamic> json) => _$AnimatorFromJson(json);
|
|
Map<String, dynamic> toJson() => _$AnimatorToJson(this);
|
|
} |