FindingSource.fromJson constructor

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

Implementation

factory FindingSource.fromJson(Map<String, dynamic> json) {
  return FindingSource(
    type: (json['type'] as String).toFindingSourceType(),
    detail: json['detail'] != null
        ? FindingSourceDetail.fromJson(json['detail'] as Map<String, dynamic>)
        : null,
  );
}