fromMap static method

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

Gets a possible CSSLinkHtmlTagAttributes instance from a Map value.

Implementation

static CSSLinkHtmlTagAttributes? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = CSSLinkHtmlTagAttributes(
    alternate: map['alternate'],
    crossOrigin: CrossOrigin.fromNativeValue(map['crossOrigin']),
    disabled: map['disabled'],
    id: map['id'],
    integrity: map['integrity'],
    media: map['media'],
    referrerPolicy: ReferrerPolicy.fromNativeValue(map['referrerPolicy']),
    title: map['title'],
  );
  return instance;
}