NamedStyle.fromJson constructor

NamedStyle.fromJson(
  1. Map json_
)

Implementation

NamedStyle.fromJson(core.Map json_)
    : this(
        namedStyleType: json_.containsKey('namedStyleType')
            ? json_['namedStyleType'] as core.String
            : null,
        paragraphStyle: json_.containsKey('paragraphStyle')
            ? ParagraphStyle.fromJson(json_['paragraphStyle']
                as core.Map<core.String, core.dynamic>)
            : null,
        textStyle: json_.containsKey('textStyle')
            ? TextStyle.fromJson(
                json_['textStyle'] as core.Map<core.String, core.dynamic>)
            : null,
      );