GetLayoutByRoleIdOutput.fromJson constructor

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

Implementation

GetLayoutByRoleIdOutput.fromJson(Map<String, dynamic> json) {
  if (json['categories'] != null) {
    categories = [];
    json['categories'].forEach((v) {
      categories!.add(new Categories.fromJson(v));
    });
  }
}