GstDetails.fromJson constructor

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

Implementation

factory GstDetails.fromJson(Map<String, dynamic> json) => GstDetails(
      clientId: json["client_id"] ?? '',
      gstin: json["gstin"] ?? '',
      panNumber: json["pan_number"] ?? '',
      businessName: json["business_name"] ?? '',
      legalName: json["legal_name"] ?? '',
      centerJurisdiction: json["center_jurisdiction"] ?? '',
      stateJurisdiction: json["state_jurisdiction"] ?? '',
      // dateOfRegistration: DateTime.parse(json["date_of_registration"]),
      dateOfRegistration:
          DateCommonMethod.stringToDate(json["date_of_registration"] ?? ''),
      constitutionOfBusiness: json["constitution_of_business"] ?? '',
      taxpayerType: json["taxpayer_type"] ?? '',
      gstinStatus: json["gstin_status"] ?? '',
      // dateOfCancellation: DateTime.parse(json["date_of_cancellation"]),
      dateOfCancellation:
          DateCommonMethod.stringToDate(json["date_of_cancellation"] ?? ''),
      fieldVisitConducted: json["field_visit_conducted"] ?? '',
      natureOfCoreBusinessActivityCode:
          json["nature_of_core_business_activity_code"] ?? '',
      natureOfCoreBusinessActivityDescription:
          json["nature_of_core_business_activity_description"] ?? '',
      address: json["address"] ?? '',
    );