encode static method

Map<String, dynamic> encode(
  1. PermissionItem value
)

Implementation

static Map<String, dynamic> encode(PermissionItem value) {
	switch (value) {
		case AlwaysPermissionItem entity:
			Map<String, dynamic> entityJson = AlwaysPermissionItem.encode(entity);
			entityJson["kotlinType"] = "AlwaysPermissionItemDto";
			return entityJson;
		default:
			throw ArgumentError('Invalid subclass $value');
	}
}