Skip to content

Instantly share code, notes, and snippets.

@VB10
Created June 27, 2019 19:11
Show Gist options
  • Save VB10/d3b3e44a5f4ffc9720a9c0a2f6b4093b to your computer and use it in GitHub Desktop.
Save VB10/d3b3e44a5f4ffc9720a9c0a2f6b4093b to your computer and use it in GitHub Desktop.
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