GetInlineStylesForNodeResult.fromJson constructor

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

Implementation

factory GetInlineStylesForNodeResult.fromJson(Map<String, dynamic> json) {
  return GetInlineStylesForNodeResult(
    inlineStyle: json.containsKey('inlineStyle')
        ? CSSStyle.fromJson(json['inlineStyle'] as Map<String, dynamic>)
        : null,
    attributesStyle: json.containsKey('attributesStyle')
        ? CSSStyle.fromJson(json['attributesStyle'] as Map<String, dynamic>)
        : null,
  );
}