platform/example_star_wars/lib/src/models/human.dart

38 lines
871 B
Dart
Raw Normal View History

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';
import 'package:graphql_schema/graphql_schema.dart';
import 'character.dart';
import 'episode.dart';
import 'starship.dart';
2019-01-23 19:52:02 +00:00
part 'human.g.dart';
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});
}