import 'package:json_annotation/json_annotation.dart'; @JsonSerializable() class tokeResponse { final String refresh; final String access; tokeResponse({ this.refresh, this.access, }); factory tokeResponse.fromJson(Map json) { return tokeResponse( refresh: json['refresh'].toString(), access: json['access'].toString(), ); } }