2018-08-04 03:05:51 +00:00
|
|
|
import 'package:angel_model/angel_model.dart';
|
2018-08-04 15:01:49 +00:00
|
|
|
import 'package:angel_serialize/angel_serialize.dart';
|
2019-01-23 19:52:02 +00:00
|
|
|
import 'package:collection/collection.dart';
|
2018-08-04 19:54:18 +00:00
|
|
|
import 'package:graphql_schema/graphql_schema.dart';
|
2018-08-04 03:05:51 +00:00
|
|
|
import 'character.dart';
|
|
|
|
import 'episode.dart';
|
|
|
|
import 'starship.dart';
|
2019-01-23 19:52:02 +00:00
|
|
|
part 'human.g.dart';
|
2018-08-04 03:05:51 +00:00
|
|
|
|
2018-08-04 15:01:49 +00:00
|
|
|
@serializable
|
2019-01-23 19:52:02 +00:00
|
|
|
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});
|
2018-08-04 03:05:51 +00:00
|
|
|
}
|