CSSPropertyRegistration.fromJson constructor

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

Implementation

factory CSSPropertyRegistration.fromJson(Map<String, dynamic> json) {
  return CSSPropertyRegistration(
    propertyName: json['propertyName'] as String,
    initialValue: json.containsKey('initialValue')
        ? Value.fromJson(json['initialValue'] as Map<String, dynamic>)
        : null,
    inherits: json['inherits'] as bool? ?? false,
    syntax: json['syntax'] as String,
  );
}