FeedbackSubmissionResult.fromJson constructor
Deserializes FeedbackSubmissionResult from a server JSON response.
Implementation
factory FeedbackSubmissionResult.fromJson(Map<String, dynamic> json) {
return FeedbackSubmissionResult(
submissionId: json['submissionId'] as String? ?? json['id'] as String? ?? '',
forwardedToGithub: json['forwardedToGithub'] as bool? ?? false,
githubDiscussionId: json['githubDiscussionId'] as String?,
githubDiscussionUrl: json['githubDiscussionUrl'] as String?,
warning: json['warning'] as String?,
);
}