convert to dart code sample output