WidgetAttachmentConfig.fromJson constructor

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

Implementation

factory WidgetAttachmentConfig.fromJson(Map<String, dynamic> json) => WidgetAttachmentConfig(
      maxSize: json['maxSize'],
      isEnabled: json['isEnabled'],
      allowedExtensions: (json['allowedExtensions'] as List<dynamic>?)?.map((e) => e as String).toSet(),
    );