ChannelLocation.deserialize constructor
ChannelLocation.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory ChannelLocation.deserialize(BinaryReader reader) {
// Read [ChannelLocation] fields.
final geoPoint = reader.readObject() as GeoPointBase;
final address = reader.readString();
// Construct [ChannelLocation] object.
final returnValue = ChannelLocation(
geoPoint: geoPoint,
address: address,
);
// Now return the deserialized [ChannelLocation].
return returnValue;
}