AccountUpdateBusinessLocation.deserialize constructor
AccountUpdateBusinessLocation.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory AccountUpdateBusinessLocation.deserialize(BinaryReader reader) {
// Read [AccountUpdateBusinessLocation] fields.
final flags = reader.readInt32();
final hasGeoPointField = (flags & 2) != 0;
final geoPoint =
hasGeoPointField ? reader.readObject() as InputGeoPointBase : null;
final hasAddressField = (flags & 1) != 0;
final address = hasAddressField ? reader.readString() : null;
// Construct [AccountUpdateBusinessLocation] object.
final returnValue = AccountUpdateBusinessLocation(
geoPoint: geoPoint,
address: address,
);
// Now return the deserialized [AccountUpdateBusinessLocation].
return returnValue;
}