Created
June 27, 2019 19:11
-
-
Save VB10/d3b3e44a5f4ffc9720a9c0a2f6b4093b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:json_annotation/json_annotation.dart'; | |
part 'login_response.g.dart'; | |
@JsonSerializable() | |
class LoginResponse { | |
String kind; | |
String localId; | |
String email; | |
String id_token; | |
String refreshToken; | |
LoginResponse( | |
{this.kind, | |
this.localId, | |
this.email, | |
this.id_token, | |
this.refreshToken}); | |
factory LoginResponse.fromJson(Map<String, dynamic> json) => | |
_$LoginResponseFromJson(json); | |
Map<String, dynamic> toJson() => _$LoginResponseToJson(this); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment