SanitizationWarning.fromJson constructor

SanitizationWarning.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SanitizationWarning.fromJson(Map<String, dynamic> json) {
  return SanitizationWarning(
    attributeName: json['attributeName'] as String?,
    elementName: json['elementName'] as String?,
    reason: (json['reason'] as String?)?.toSanitizationWarningReason(),
  );
}