Fixing Deprecated method call

Getting some 'deprecated method' in Profiler logs for GoogleMapFormType. This commit replace deprecated method calls with the new valid syntax in the form type class (LatLngValidator fix coming in another PR).