AttachmentSettings.fromJson constructor

AttachmentSettings.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory AttachmentSettings.fromJson(Map<String, Object?> json) {
  return AttachmentSettings(
    enabled: json[r'enabled'] as bool? ?? false,
    uploadLimit: (json[r'uploadLimit'] as num?)?.toInt(),
  );
}