-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEnum Codable.sourcerytemplate
1 lines (1 loc) · 10.2 KB
/
Enum Codable.sourcerytemplate
1
{"version":3,"instance":"eyJpZCI6IjE0Mjc2NjRBLUQ1RDYtNDM5Qi05NTUwLTYxOUY4RjVGODM0NiIsImRlc2NyaXB0aW9uIjoiR2VuZXJhdGVzIGNvZGFibGUgZm9yIGVudW1zIHdpdGggYXNzb2NpYXRlZCB2YWx1ZXMiLCJjb250ZW50IjoieyUgbWFjcm8gYXNzb2NpYXRlZFZhbHVlTmFtZSBjYXNlQXNzb2NpYXRlZFZhbHVlIGluZGV4ICV9eyUgdHlwZWQgY2FzZUFzc29jaWF0ZWRWYWx1ZSBhcyBBc3NvY2lhdGVkVmFsdWUgaW5kZXggYXMgSW50ICV9eyUgaWYgY2FzZUFzc29jaWF0ZWRWYWx1ZS5sb2NhbE5hbWUgJX17eyBjYXNlQXNzb2NpYXRlZFZhbHVlLmxvY2FsTmFtZSB9fXslIGVsc2UgJX1hc3NvY2lhdGVkVmFsdWV7eyBpbmRleCB9fXslIGVuZGlmICV9eyUgZW5kbWFjcm8gJX1cbnslIG1hY3JvIGV4cGFuZEFzc29jaWF0ZWRWYWx1ZXMgYXJyYXkgJX17JSB0eXBlZCBhcnJheSBhcyBbQXNzb2NpYXRlZFZhbHVlXSAlfXslIGZvciB2YWx1ZSBpbiBhcnJheSAlfXslIGNhbGwgYXNzb2NpYXRlZFZhbHVlTmFtZSB2YWx1ZSBmb3Jsb29wLmNvdW50ZXIwICV9e3sgJywgJyBpZiBub3QgZm9ybG9vcC5sYXN0IH19eyUgZW5kZm9yICV9eyUgZW5kbWFjcm8gJX1cblxueyUgbWFjcm8gY2FzZURlY29kZXIgY2FzZSAlfVxueyUgdHlwZWQgY2FzZSBhcyBFbnVtQ2FzZSAlfVxueyUgaWYgY2FzZS5oYXNBc3NvY2lhdGVkVmFsdWUgJX1cbiAgICAgICAgY2FzZSBcInt7IGNhc2UubmFtZS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