static Map<String, dynamic> encode(Basic value) { Map<String, dynamic> entityAsMap = { "username" : value.username, "password" : value.password }; return entityAsMap; }