fromJson static method

NotusStyle fromJson(
  1. Map<String, dynamic>? data
)

Implementation

static NotusStyle fromJson(Map<String, dynamic>? data) {
  if (data == null) return NotusStyle();

  final result = data.map((String key, dynamic value) {
    var attr = NotusAttribute._fromKeyValue(key, value);
    return MapEntry<String, NotusAttribute>(key, attr);
  });
  return NotusStyle._(result);
}