TypeChecking.fromJson constructor
Creates a TypeChecking from JSON data.
Implementation
factory TypeChecking.fromJson(Map<String, dynamic> json) {
final tempExpressionWarningsJson = json['expressionWarnings'];
final List<ExpressionWarning>? tempExpressionWarnings =
tempExpressionWarningsJson != null
? List<dynamic>.from(tempExpressionWarningsJson)
.map(
(e) => ExpressionWarning.fromJson(
Map<String, dynamic>.from(e),
),
)
.toList()
: null;
return TypeChecking(
expressionWarnings: tempExpressionWarnings,
);
}