SyncConfig.fromJson constructor
SyncConfig.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SyncConfig.fromJson(Map<String, dynamic> json) {
return SyncConfig(
conflictDetection:
(json['conflictDetection'] as String?)?.toConflictDetectionType(),
conflictHandler:
(json['conflictHandler'] as String?)?.toConflictHandlerType(),
lambdaConflictHandlerConfig: json['lambdaConflictHandlerConfig'] != null
? LambdaConflictHandlerConfig.fromJson(
json['lambdaConflictHandlerConfig'] as Map<String, dynamic>)
: null,
);
}