NamedStyles.fromJson constructor

NamedStyles.fromJson(
  1. Map json_
)

Implementation

NamedStyles.fromJson(core.Map json_)
    : this(
        styles: json_.containsKey('styles')
            ? (json_['styles'] as core.List)
                .map((value) => NamedStyle.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );