ServerPluginInit.fromJson constructor

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

Implementation

factory ServerPluginInit.fromJson(Map<String, dynamic> json) => ServerPluginInit(
    enabled: (json['Enabled'] as bool?) ?? false,
    bundleDirectoryPath: (json['BundleDirectoryPath'] as String?) ?? '',
    bundleDirectoryZipContent: json['BundleDirectoryZipContent'],
    dllName: (json['DllName'] as String?) ?? '',
    typeName: (json['TypeName'] as String?) ?? '',
    configFilePath: (json['ConfigFilePath'] as String?) ?? '',
    configJsonContent: (json['ConfigJsonContent'] as String?) ?? '',
    extraConfigs: (json['ExtraConfigs'] as List<dynamic>?)?.map((e) => ServerPluginInitExtraConfig.fromJson((e ?? {}) as Map<String, dynamic>)).toList() ?? const [],
);