PostAddress.deserialize constructor
PostAddress.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory PostAddress.deserialize(BinaryReader reader) {
// Read [PostAddress] fields.
final streetLine1 = reader.readString();
final streetLine2 = reader.readString();
final city = reader.readString();
final state = reader.readString();
final countryIso2 = reader.readString();
final postCode = reader.readString();
// Construct [PostAddress] object.
final returnValue = PostAddress(
streetLine1: streetLine1,
streetLine2: streetLine2,
city: city,
state: state,
countryIso2: countryIso2,
postCode: postCode,
);
// Now return the deserialized [PostAddress].
return returnValue;
}