Location constructor

Location({
  1. String? reference,
})

Constructs a new Location with an optional reference.

Implementation

Location({
  String? reference,
}) : this.fromJson(
        JsonObject({
          if (reference != null) referenceField.name: JsonString(reference),
        }),
      );