OAuthAccount.fromJson constructor

OAuthAccount.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory OAuthAccount.fromJson(Map<String, dynamic> json) =>
    OAuthAccount(json["identifier"],
        tokenType: json["tokenType"],
        idToken: json["idToken"],
        token: json["token"],
        created: DateTime.parse(json["created"]),
        expiresIn: json["expiresIn"],
        refreshToken: json["refreshToken"],
        scope: new List<String>.from(json["scope"]),
        userData: new Map<String, String>.from(json["userData"]));