SourceRedirectFlow.fromJson constructor

SourceRedirectFlow.fromJson(
  1. Object? json
)

Implementation

factory SourceRedirectFlow.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SourceRedirectFlow(
    failureReason: map['failure_reason'] == null
        ? null
        : (map['failure_reason'] as String),
    returnUrl: (map['return_url'] as String),
    status: (map['status'] as String),
    url: (map['url'] as String),
  );
}