import 'package:mc_common_app/view_models/ad_view_model.dart';

class ContactInfoModel {
  int? id;
  String? companyName;
  String? mobileNo;
  String? phoneNo;
  String? email;
  String? address;
  String? latitude;
  String? longitude;
  int? channel;
  bool? isActive;
  List<ImageModel>? contactInfoImages;

  ContactInfoModel({this.id, this.companyName, this.mobileNo, this.phoneNo, this.email, this.address, this.latitude, this.longitude, this.channel, this.isActive, this.contactInfoImages});

  ContactInfoModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    companyName = json['companyName'];
    mobileNo = json['mobileNo'];
    phoneNo = json['phoneNo'];
    email = json['email'];
    address = json['address'];
    latitude = json['latitude'];
    longitude = json['longitude'];
    channel = json['channel'];
    isActive = json['isActive'];
    if (json['contactInfoImages'] != null) {
      contactInfoImages = <ImageModel>[];
      json['contactInfoImages'].forEach((v) {
        contactInfoImages!.add(ImageModel.fromJson(v));
      });
    }
  }
}
