validate static method

bool validate(
  1. dynamic data
)

Implementation

static bool validate(data) {
  return data['type'] == 'Point' &&
      data['coordinates'] is List &&
      Validater.isGeopoint('longitude', data['coordinates'][0]) &&
      Validater.isGeopoint('latitude', data['coordinates'][1]);
}