Practice.fromJson constructor

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

Implementation

factory Practice.fromJson(Map<String, dynamic> json) {
  return Practice(
    id: json['id'],
    name: json['name'].toString(),
    location: json['location'].toString(),
    responsibleForInformation: json['responsible_for_information'].toString(),
    url: json['url'].toString(),
    imageUrl: json['image_url'].toString(),
    whereItIsRealized: json['where_it_is_realized'].toString(),
    summaryDescription: json['summary_description'].toString(),
    practicalImplementationOfThePractice: json['practical_implementation_of_the_practice'].toString(),
    typeOfAgroecologicalPractice: json['type_of_agroecological_practice'].toString(),
    whyYouUseAndWhatYouExpectFromThisPractice: json['why_you_use_and_what_you_expect_from_this_practice'].toString(),
    landSize: json['land_size'].toString(),
    substitutionOfLessEcologicalAlternative: json['substitution_of_less_ecological_alternative'].toString(),
    agroecologyPrinciplesAddressed: json['agroecology_principles_addressed'].toString(),
    foodSystemComponentsAddressed: json['food_system_components_addressed'].toString(),
    generalPerformanceOfPractice: json['general_performance_of_practice'].toString(),
    unintendedPositiveSideEffectsOfPractice: json['unintended_positive_side_effects_of_practice'].toString(),
    unintendedNegativeSideEffectOfPractice: json['unintended_negative_side_effect_of_practice'].toString(),
    knowledgeAndSkillsRequiredForPractice: json['knowledge_and_skills_required_for_practice'].toString(),
    labourRequiredForPractice: json['labour_required_for_practice'].toString(),
    costAssociatedWithPractice: json['cost_associated_with_practice'].toString(),
    doesItWorkInDegradedEnvironments: json['does_it_work_in_degraded_environments'].toString(),
    doesItHelpRestoreLand: json['does_it_help_restore_land'].toString(),
    climateChangeVulnerabilityEffects: json['climate_change_vulnerability_effects'].toString(),
    timeRequirements: json['time_requirements'].toString(),
    generalPerformanceOfPracticeDetails: json['general_performance_of_practice_details'].toString(),
    unintendedPositiveSideEffectsOfPracticeDetails:
        json['unintended_positive_side_effects_of_practice_details'].toString(),
    unintendedNegativeSideEffectOfPracticeDetails:
        json['unintended_negative_side_effect_of_practice_details'].toString(),
    knowledgeAndSkillsRequiredForPracticeDetails:
        json['knowledge_and_skills_required_for_practice_details'].toString(),
    labourRequiredForPracticeDetails: json['labour_required_for_practice_details'].toString(),
    costAssociatedWithPracticeDetails: json['cost_associated_with_practice_details'].toString(),
    doesItWorkInDegradedEnvironmentsDetails: json['does_it_work_in_degraded_environments_details'].toString(),
    doesItHelpRestoreLandDetails: json['does_it_help_restore_land_details'].toString(),
    climateChangeVulnerabilityEffectsDetails: json['climate_change_vulnerability_effects_details'].toString(),
    timeRequirementsDetails: json['time_requirements_details'].toString(),
    knowledgeSource: json['knowledge_source'].toString(),
    knowledgeTiming: json['knowledge_timing'].toString(),
    knowledgeProducts: json['knowledge_products'].toString(),
    uptakeMotivation: json['uptake_motivation'].toString(),
    knowledgeSourceDetails: json['knowledge_source_details'].toString(),
    knowledgeTimingDetails: json['knowledge_timing_details'].toString(),
    locationId: json['location_id'].toString(),
    accountId: json['account_id'].toString(),
  );
}