fromMap static method

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

Gets a possible IOSWKWebsiteDataRecord instance from a Map value.

Implementation

static IOSWKWebsiteDataRecord? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = IOSWKWebsiteDataRecord(
    dataTypes: map['dataTypes'] != null
        ? Set<IOSWKWebsiteDataType>.from(map['dataTypes']
            .map((e) => IOSWKWebsiteDataType.fromNativeValue(e)!))
        : null,
    displayName: map['displayName'],
  );
  return instance;
}