ScreenTypes.fromJson constructor

ScreenTypes.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory ScreenTypes.fromJson(Map<String, Object?> json) {
  return ScreenTypes(
    create: (json[r'create'] as num?)?.toInt(),
    default$: (json[r'default'] as num?)?.toInt(),
    edit: (json[r'edit'] as num?)?.toInt(),
    view: (json[r'view'] as num?)?.toInt(),
  );
}