mirrored_repositories/Restaurant-Assignment/lib

import 'dart:convert';

ResponseLogin responseLoginFromJson(String str) => ResponseLogin.fromJson(json.decode(str));

String responseLoginToJson(ResponseLogin data) => json.encode(data.toJson());

class ResponseLogin {
  ResponseLogin({
    this.refresh,
    this.access,
  });

  String refresh;
  String access;

  factory ResponseLogin.fromJson(Map<String, dynamic> json) => ResponseLogin(
    refresh: json["refresh"],
    access: json["access"],
  );

  Map<String, dynamic> toJson() => {
    "refresh": refresh,
    "access": access,
  };
}
