fromJson static method

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

Implementation

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

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