PropertyRuleIssueDetails.fromJson constructor

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

Implementation

factory PropertyRuleIssueDetails.fromJson(Map<String, dynamic> json) {
  return PropertyRuleIssueDetails(
    sourceCodeLocation: SourceCodeLocation.fromJson(
      json['sourceCodeLocation'] as Map<String, dynamic>,
    ),
    propertyRuleIssueReason: PropertyRuleIssueReason.fromJson(
      json['propertyRuleIssueReason'] as String,
    ),
    propertyValue:
        json.containsKey('propertyValue')
            ? json['propertyValue'] as String
            : null,
  );
}