mirrored_repositories/flutter_amazon_clone/lib
class UserDetailsModel {
  final String name;
  final String address;
  UserDetailsModel({
    required this.name,
    required this.address,
  });

  Map<String, dynamic> getJson() => {"name": name, "address": address};

  factory UserDetailsModel.getModelFromJson(Map<String, dynamic> json) {
    return UserDetailsModel(name: json["name"], address: json["address"]);
  }
}
