fromJson static method
Implementation
static AgreementStatus fromJson(params) {
bool agreedRequiredTerms = params['agreedRequiredTerms'];
List<AgreementTerm> terms = [];
for (var term in params['terms']) {
String id = term['id'];
bool agreed = term['agreed'];
bool required = term['required'];
terms.add(AgreementTerm(id: id, agreed: agreed, required: required));
}
return AgreementStatus(
agreedRequiredTerms: agreedRequiredTerms, terms: terms);
}