factory UpdateParam.fromJson(Map<String, dynamic> json) { return UpdateParam( type: (json['type'] as String?)?.toUpdateParamType(), value: json['value'] as String?, ); }