import 'dart:convert';

PasswordOTPCompare otpCompareFromJson(String str) => PasswordOTPCompare.fromJson(json.decode(str));

String otpCompareToJson(PasswordOTPCompare data) => json.encode(data.toJson());

class PasswordOTPCompare {
  dynamic totalItemsCount;
  Data? data;
  int? messageStatus;
  String? message;

  PasswordOTPCompare({this.totalItemsCount, this.data, this.messageStatus, this.message});

  PasswordOTPCompare.fromJson(Map<String, dynamic> json) {
    totalItemsCount = json['totalItemsCount'];
    data = json['data'] != null ? new Data.fromJson(json['data']) : null;
    messageStatus = json['messageStatus'];
    message = json['message'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['totalItemsCount'] = this.totalItemsCount;
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    data['messageStatus'] = this.messageStatus;
    data['message'] = this.message;
    return data;
  }
}

class Data {
  String? userToken;

  Data({this.userToken});

  Data.fromJson(Map<String, dynamic> json) {
    userToken = json['userToken'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['userToken'] = this.userToken;
    return data;
  }
}
