Website.fromMap constructor

Website.fromMap(
  1. Map<String, dynamic> map
)

Constructs a Website instance from a map.

Once created, no properties of an Website object may be changed.

Implementation

Website.fromMap(final Map<String, dynamic> map)
    : label = map[_labelKey] == null ? null : '${map[_labelKey]}',
      website = map[_websiteKey] == null
          ? throw const FormatException(
              'The [website] parameter cannot be null.',
            )
          : '${map[_websiteKey]}';