fromMap static method

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

Gets a possible ScriptHtmlTagAttributes instance from a Map value.

Implementation

static ScriptHtmlTagAttributes? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = ScriptHtmlTagAttributes(
    async: map['async'],
    crossOrigin: CrossOrigin.fromNativeValue(map['crossOrigin']),
    defer: map['defer'],
    id: map['id'],
    integrity: map['integrity'],
    noModule: map['noModule'],
    nonce: map['nonce'],
    referrerPolicy: ReferrerPolicy.fromNativeValue(map['referrerPolicy']),
  );
  instance.type = map['type'];
  return instance;
}