DeprecationIssueDetails.fromJson constructor

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

Implementation

factory DeprecationIssueDetails.fromJson(Map<String, dynamic> json) {
  return DeprecationIssueDetails(
    affectedFrame: json.containsKey('affectedFrame')
        ? AffectedFrame.fromJson(
            json['affectedFrame'] as Map<String, dynamic>)
        : null,
    sourceCodeLocation: SourceCodeLocation.fromJson(
        json['sourceCodeLocation'] as Map<String, dynamic>),
    type: json['type'] as String,
  );
}