DataValidationMetrics.fromJson constructor
DataValidationMetrics.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DataValidationMetrics.fromJson(Map<String, dynamic> json) {
return DataValidationMetrics(
fieldLevelMessages: (json['fieldLevelMessages'] as List?)
?.whereNotNull()
.map(
(e) => FieldValidationMessage.fromJson(e as Map<String, dynamic>))
.toList(),
fileLevelMessages: (json['fileLevelMessages'] as List?)
?.whereNotNull()
.map((e) => FileValidationMessage.fromJson(e as Map<String, dynamic>))
.toList(),
);
}