toJson method
Returns a Map representing this DirectLinkLocation.
Implementation
Map<String, dynamic> toJson() => switch (runtimeType) {
const (DirectLinkLocationUser) => (this as DirectLinkLocationUser).toJson(),
const (DirectLinkLocationGroup) =>
(this as DirectLinkLocationGroup).toJson(),
_ => throw UnimplementedError(runtimeType.toString()),
};