toMap method

JsonMap toMap()

Implementation

JsonMap toMap() => {
      'identifier': identifier,
      'latitude': latitude,
      'longitude': longitude,
      'radius': radius,
      'action': action.name,
      'obfuscationRadius': obfuscationRadius,
      if (label != null) 'label': label,
      'enabled': enabled,
      if (extras != null) 'extras': extras,
      'createdAt': createdAt.toIso8601String(),
      if (updatedAt != null) 'updatedAt': updatedAt!.toIso8601String(),
    };