fromMap static method

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

Gets a possible WebsiteDataRecord instance from a Map value.

Implementation

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