Address.fromNative constructor

Address.fromNative(
  1. Map data
)

Create a Address from native data.

Implementation

Address.fromNative(Map data)
    : addressLines = List.unmodifiable(
        (data['addressLines'] as List? ?? []).cast<String>(),
      ),
      type = AddressType.values[data['type'] as int];