(p: FamilyCodeProto)
| 124 | } |
| 125 | |
| 126 | function decodeFamilyCodeFromProto(p: FamilyCodeProto): FamilyCode { |
| 127 | const fc = new FamilyCode() |
| 128 | fc.accountID = p.accountId ?? '' |
| 129 | fc.familyCodeStr = p.familyCode ?? '' |
| 130 | return fc |
| 131 | } |
| 132 | |
| 133 | function decodeSmartComponentFromProto(p: SmartComponentProto): SmartComponent { |
| 134 | const sc = new SmartComponent() |