DetectSyntaxResponse.fromJson constructor

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

Implementation

factory DetectSyntaxResponse.fromJson(Map<String, dynamic> json) {
  return DetectSyntaxResponse(
    syntaxTokens: (json['SyntaxTokens'] as List?)
        ?.whereNotNull()
        .map((e) => SyntaxToken.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}