refactor idl to dart type
fix licence parser