Resolver.fromJson constructor

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

Implementation

factory Resolver.fromJson(Map<String, dynamic> json) {
  return Resolver(
    cachingConfig: json['cachingConfig'] != null
        ? CachingConfig.fromJson(
            json['cachingConfig'] as Map<String, dynamic>)
        : null,
    dataSourceName: json['dataSourceName'] as String?,
    fieldName: json['fieldName'] as String?,
    kind: (json['kind'] as String?)?.toResolverKind(),
    pipelineConfig: json['pipelineConfig'] != null
        ? PipelineConfig.fromJson(
            json['pipelineConfig'] as Map<String, dynamic>)
        : null,
    requestMappingTemplate: json['requestMappingTemplate'] as String?,
    resolverArn: json['resolverArn'] as String?,
    responseMappingTemplate: json['responseMappingTemplate'] as String?,
    syncConfig: json['syncConfig'] != null
        ? SyncConfig.fromJson(json['syncConfig'] as Map<String, dynamic>)
        : null,
    typeName: json['typeName'] as String?,
  );
}