response method Null safety

  1. @override
Future<Poll> response(
  1. Map<String, dynamic> res
)
override

Implementation

@override
Future<Poll> response(res) async {
  return Poll.fromJson(res);
}