DebugHookConfig.fromJson constructor

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

Implementation

factory DebugHookConfig.fromJson(Map<String, dynamic> json) {
  return DebugHookConfig(
    s3OutputPath: json['S3OutputPath'] as String,
    collectionConfigurations: (json['CollectionConfigurations'] as List?)
        ?.whereNotNull()
        .map((e) =>
            CollectionConfiguration.fromJson(e as Map<String, dynamic>))
        .toList(),
    hookParameters: (json['HookParameters'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    localPath: json['LocalPath'] as String?,
  );
}