Policy.fromJson constructor

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

Implementation

factory Policy.fromJson(Map<String, dynamic> json) {
  return Policy(
    content: json['Content'] as String?,
    policySummary: json['PolicySummary'] != null
        ? PolicySummary.fromJson(
            json['PolicySummary'] as Map<String, dynamic>)
        : null,
  );
}