feat : Widget commentaire
This commit is contained in:
20
lib/models/animator.dart
Normal file
20
lib/models/animator.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user