Converted JS initializeModel to Pure Dart initializeModel using google_dart_realtime library.