37 lines
871 B
Dart
37 lines
871 B
Dart
import 'package:angel_model/angel_model.dart';
|
|
import 'package:angel_serialize/angel_serialize.dart';
|
|
import 'package:collection/collection.dart';
|
|
import 'package:graphql_schema/graphql_schema.dart';
|
|
import 'character.dart';
|
|
import 'episode.dart';
|
|
import 'starship.dart';
|
|
part 'human.g.dart';
|
|
|
|
@serializable
|
|
abstract class _Human extends Model implements Character {
|
|
// @GraphQLDocumentation(description: "This human's name, of course.")
|
|
// String name;
|
|
// List<Character> friends;
|
|
// List<Episode> appearsIn;
|
|
// List<Starship> starships;
|
|
// int totalCredits;
|
|
|
|
String get id;
|
|
|
|
String get name;
|
|
|
|
List<Episode> get appearsIn;
|
|
|
|
List<Character> get friends;
|
|
|
|
int get totalCredits;
|
|
|
|
List<Starship> get starships;
|
|
|
|
// Human(
|
|
// {this.name,
|
|
// this.friends,
|
|
// this.appearsIn,
|
|
// this.starships,
|
|
// this.totalCredits});
|
|
}
|