PortalFlowsFlowAfterCompletion.fromJson constructor

PortalFlowsFlowAfterCompletion.fromJson(
  1. Object? json
)

Implementation

factory PortalFlowsFlowAfterCompletion.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PortalFlowsFlowAfterCompletion(
    hostedConfirmation: map['hosted_confirmation'] == null
        ? null
        : PortalFlowsAfterCompletionHostedConfirmation.fromJson(
            map['hosted_confirmation']),
    redirect: map['redirect'] == null
        ? null
        : PortalFlowsAfterCompletionRedirect.fromJson(map['redirect']),
    type: PortalFlowsFlowAfterCompletionType.fromJson(map['type']),
  );
}