// // YMPayMethodCellViewModel.m // MSYOUPAI // // Created by YoMi on 2024/3/21. // Copyright © 2024 MS. All rights reserved. // #import "YMPayMethodCellViewModel.h" @interface YMPayMethodCellViewModel () /// 支付Id @property (nonatomic, strong, readwrite) NSString *payId; /// 支付图标 @property (nonatomic, strong, readwrite) NSString *payIcon; /// 支付标题 @property (nonatomic, strong, readwrite) NSString *payTitle; /// 支付代码 @property (nonatomic, strong, readwrite) NSString *payCode; @end @implementation YMPayMethodCellViewModel - (void)ym_initialize{ [super ym_initialize]; if ([self.params[ParamsModel] isKindOfClass:[NSDictionary class]]) { NSDictionary *dic = self.params[ParamsModel]; self.payId = [dic stringValueForKey:@"id" defaultValue:@""]; self.payIcon = [dic stringValueForKey:@"icon" defaultValue:@""]; self.payTitle = [dic stringValueForKey:@"title" defaultValue:@""]; self.payCode = [dic stringValueForKey:@"code" defaultValue:@""]; } } @end