toMap method

JsonMap toMap()

Implementation

JsonMap toMap() => {
      'geofence': geofence.toMap(),
      'type': type.name,
      'timestamp': timestamp.toIso8601String(),
      if (triggerLocation != null)
        'triggerLocation': triggerLocation!.toMap(),
    };