DestinationConfig.fromJson constructor

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

Implementation

factory DestinationConfig.fromJson(Map<String, dynamic> json) {
  return DestinationConfig(
    onFailure: json['OnFailure'] != null
        ? OnFailure.fromJson(json['OnFailure'] as Map<String, dynamic>)
        : null,
    onSuccess: json['OnSuccess'] != null
        ? OnSuccess.fromJson(json['OnSuccess'] as Map<String, dynamic>)
        : null,
  );
}