class OfflinePasswordModel { final dynamic gmtCreate; final dynamic gmtExpired; final dynamic gmtStart; final bool hasClearPwd; final String optUid; final String pwd; final dynamic pwdId; final String pwdName; final String pwdTypeCode; final String revokedPwdName; final dynamic status; OfflinePasswordModel({ required this.gmtCreate, required this.gmtExpired, required this.gmtStart, required this.hasClearPwd, required this.optUid, required this.pwd, required this.pwdId, required this.pwdName, required this.pwdTypeCode, required this.revokedPwdName, required this.status, }); // Factory method to create a Password from a JSON map factory OfflinePasswordModel.fromJson(Map json) { return OfflinePasswordModel( gmtCreate: json['gmtCreate'], gmtExpired: json['gmtExpired'], gmtStart: json['gmtStart'], hasClearPwd: json['hasClearPwd'], optUid: json['optUid'], pwd: json['pwd'], pwdId: json['pwdId'], pwdName: json['pwdName'], pwdTypeCode: json['pwdTypeCode'], revokedPwdName: json['revokedPwdName'], status: json['status'], ); } // Method to convert a Password object to a JSON map Map toJson() { return { 'gmtCreate': gmtCreate, 'gmtExpired': gmtExpired, 'gmtStart': gmtStart, 'hasClearPwd': hasClearPwd, 'optUid': optUid, 'pwd': pwd, 'pwdId': pwdId, 'pwdName': pwdName, 'pwdTypeCode': pwdTypeCode, 'revokedPwdName': revokedPwdName, 'status': status, }; } }